So I am working on my first project and was trying to get my schematic down before i started learning to code. I bought the "learning to fly PIC24" book. I have a few beginners questions
1. My project will include a 4x4 keypad and a 16x2 LCD screen with the PIC24FJ64GA002 controller, can i hook all of this up to a 28 pin PIC24?
2. I plan to use the basic 16x2 LCD hd44780, but i have no idea how to lay it out on my schematic, which pins go to which D0-D7, do i want 8 bit or 4 bit? I can find examples every where for a PIC16F/PIC18F but no PIC24. Just what to plug in where
3. Also is there a standard way of hooking up the hardware to make coding the LCD/KEYPAD easier?
Thanks so much for the response I had thought programing was the important part. Maybe i should have chose a PIC18F/PIC16F way more helpful info on those.
Hi,
Have to agree with Vne147 that using a 16F or 18F chip would be a much easier way for a beginner to start as they are so much more supported in both Assembler and C
The chip you specify, don't know if you have yet bought it ? its only one of a couple that are made in DIP form, all other pic24s are SMD so that may be a consideration for the future builds.
Hi,
Well from your first post it sounded like you were wanting to make up your own dev board, but now you have one - not sure if it is a Microchip Explorer16 board ? - didn't think they used that chip.
As you have that it would seem worth while to continue rather than move to another chip type - think you should try going though the examples of that book on your dev board which will teach you a lot - then the hardware issues should be a lot clearer for you.
Good luck.
1. The pic24fj64ga002 with 28 pins is what i was told to use on my personal board for this project, however the book i got teaches how to use the LCD with a HD44780 controller
it wires the PIC to pins PMWR.PMRD,PMA0,PMD1,PMD#0-7. On the PIC24FJ64GA002 are these the same as the RB#? just I/O pins.
2. If theyare I/O pins i should just be able to use whatever I/O pins i want on the 28 pin PIC, in the book they use somthing called PMP, can I also use this on the PIC24FJ64GA002 b/c this way seems very simple?
3. Also when looking through the example it says the PMDATA will be published on the PMP data bus (PMD0-PMD7). Does the controller automatically know which pins are where? I don't see any where in the C example code that assigns anything to the I/O ports?
The 24F is a lot of chip for this project. Due to it not being 5v, and its cost, I wouldn't choose it from the beginning.
This part features a Peripheral Pin Select Crossbar, which is a godsend to board designers because most peripherals- both input and output- can be assigned to the pins which work out best on the board. I can do some REALLY complicated stuff with a single-sided board with PPS and the wires won't need jumpers. Pins labeled "RPn" are remappable.1. The pic24fj64ga002 with 28 pins is what i was told to use on my personal board for this project, however the book i got teaches how to use the LCD with a HD44780 controller which i will get also, however it wires the PIC to pins PMWR.PMRD,PMA0,PMD1,PMD#0-7. On the PIC24FJ64GA002 are these the same as the RB#? just I/O pins.
2. If theyare I/O pins i should just be able to use whatever I/O pins i want on the 28 pin PIC, in the book they use somthing called PMP, can I also use this on the PIC24FJ64GA002 b/c this way seems very simple?
3. Also when looking through the example it says the PMDATA will be published on the PMP data bus (PMD0-PMD7). Does the controller automatically know which pins are where? I don't see any where in the C example code that assigns anything to the I/O ports?
As stated above i am just diving right into this so if my questions make no sense i am sorry.
I would assume that if this book is worth the paper it's written on,
The book, Programming 16-Bit PIC Microcontrollers in C, Learning to Fly the PIC24,
is written by a senior Microchip engineer , Lucio Di Jasio
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?