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.
multiplication pic
Shifting method...
It is same as you present number as a sum of 2^n factors, which is suitable for microcontroller operations.
For example if you need to multiply some number with 100 it is same if you multiply with (64+32+4). This can be be easily realized with shifting...
Cblock is directive for block of variable definition
Cblock 0x20 means that first variable (MULTA) is at address 0x20,
secound(MULTB) at 0x21.. and so on...
It is the same as :
MULTA equ 0x20
MULTB equ 0x21
...
Re: PIC with CAN
mikroPascal, and mikrobasic for pic have built in instructions for CAN communication.
There is an example with pic18F458.
You can download 2k instructions demo version, and you will be able to compile this example...
For 8 led displays:
It is much better to use one byte with 1 at one bit and 0 at other 7 bits.
00000001
00000010
00000100
00001000
00010000
00100000
01000000
10000000
00000001
...
In every switch instruction just rotate this byte, and put it on PORT which turns on displays.
protecting an adc input circuit
R- limits the current
Zener diode prottect against voltages greater than Vz. Vz is slightly greater than Vdd.
Schotky diode protect against negative voltages <-0.2V
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.