blueroomelectronics
Well-Known Member
I wonder how an AVR vs 18F PIC thread would look, or AVR vs dsPIC...
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Thunderchild said:well as I'm new to pics I don't know if 18F is more difficult to program in assembly than 16F pics
but I think one 16F should be mentioned
bananasiong said:Yes, it's good to have the knowledge of 14-bit core's 35 instructions. Many of the 75 instructions in 18F are similar to 16Fs'. The bank switching in PIC18 makes my life easier. When using PIC16, I always check the datasheet for the bank of that particular register (even the 'find' of pdf can be used, but it is still time consuming).
I don't know C18, even haven't used all the 75 instructions in PIC18
decfsz WREG
Oh really??!!?? I didn't know about this even I'm using a PIC18blueroomelectronics said:I've got to start posting 18F tips of the day.
Todays:
You can treat W just like any other file register.
Eg:
Code:decfsz WREG
Very handy for delay routines...
Delay
dcfsnz WREG
return
bra Delay
SuperTech said:If you write this book please do not make it hard to understand. I had to take a microcontroller course and I hated it because the book we used, "PIC Microcontroller: An Introduction to Software & Hardware Interfacing" is the worst book at communicating to the reader how to program a pic. The author of that book assumed too much of prior knowledge of the reader. So please make your book NOOB friendly....
blueroomelectronics said:Actually the 18F series PICs are easier than the 16F IMO. I thought the same thing ages ago but the 18F feels right, great compilers and the free versions of C18 & Swordfish BASIC are awesome.