Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
Hi guys, I got this 16x8 multiplication macro in piclist and it's just what I needed. However, I am having trouble using it since it's my first time using macros. Here's the code:
#include<P18F4455.INC>
CONFIG FOSC = INTOSC_EC
CONFIG WDT = OFF
CONFIG PBADEN = OFF
CONFIG MCLRE = ON
CONFIG...
Wow! Very detailed explanation. Got it! Super thanks! :)
Just a question about macros.. This will be my first time using this. In order to use your 10x10bit multiplication code, I just have to specify the destinations of the data right? So for the macro, MULT_10x10 MACRO aH,aL, bH,bL, rH,rM,rL...
I am actually thinking of repetitive subtraction and addition for division and multiplication, respectively. However, my problem is how to account for the 2MSBs located in another register (ADRESH). It's easy dividing 8bits by 8bits using repetitive subtraction (or so I think hehe) but I'm...
I need help in using multiplication and division operation using PIC18F4455 in assembly language.
So, my project is like this: I have a voltage divider circuit, with the input connected to a voltage reference of 5V and the output connected to the analog input of the PIC. I used the ADC feature...
Re: Pic18f4455 adc problem
I solved it using the MOVFF instruction instead of MOVLW. Still, thanks!
My new problem is to actually compute for the unknown resistance. My pseudocode is to:
1. Get the decimal equivalent of the ADC output: Vout=(Vin/1024)*analogvalue
2. Solve for Runk =...
Re: Pic18f4455 adc problem
I removed that line, but nothing significant happened. It still transmits the same characters - a vertical line and a dash - for all cases. No matter what the values of the resistors are, same characters are displayed. I am thinking that the problem lies of the ADC...
Re: Pic18f4455 adc problem
Hm. I was assuming that if I have to store a new data in TXREG, I have to clear that register first. Isn't that necessary?
Thank you for your reply! :)
Good day!
Hi, I'm a newbie in microcontroller interfacing and I would like to seek help.
Our project was to make an RC-meter using PIC18F4455 and right now, I'm working on the resistance-meter of our project.
The simple schematic I used is attached here.
The code with comments is shown...
Hi erikl. thank you for your reply. I am working on it now. May I also ask, do you have an idea on which region each transistor should operate given a certain input? I just am not sure how to check the design properly.
Thank you very much. :smile:
I have to design a S/H sampler with a bootstrapped circuit as shown below. I got this circuit from "A Self-Calibrated Pipeline ADC with 200 MHz IF-Sampling Frontend" by MAltari, et al, however I could not understand how I would design this circuit step by step.
I am sorry this is my first time...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.