View previous topic :: View next topic |
Author |
Message |
Regular Guy
Joined: 04 Jun 2017 Posts: 110
|
|
Posted: Sun Nov 01, 2020 4:52 pm |
|
|
Thanks Jay
You beat me to it!
Just ran across in Microchip board user guide.
The 18F14K50 succeeded the 18F4550.
That is a real good tip about using TTL to keep code off PIC.
Sort of looking at this LCD situation and thinking same thing.
LCD program takes up space on the PIC.
Thinking about just lighting LED's for debugging.
Bob _________________ PIC Hobbyist |
|
|
dluu13
Joined: 28 Sep 2018 Posts: 395 Location: Toronto, ON
|
|
Posted: Mon Nov 02, 2020 8:56 am |
|
|
Blinking LEDs is very limiting.
With minimal code, you can use the USB to UART converter and output text to a terminal program like Realterm which helps greatly with debug. The fact that CCS makes it so that setup is the same on pretty much any PIC makes it very easy to switch chips as well. Whatever you develop now will be reusable later on.
Look into the #use rs232 statement in the manual along with the examples and you can use fprintf to spit out numbers, characters, or whatever data you want over to your computer. |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9081 Location: Greensville,Ontario
|
|
Posted: Mon Nov 02, 2020 9:32 am |
|
|
Anotehr benefit to using a TTLUSB module is you can use it to power the PIC and parts ! Most modules have both 3 and 5 volt pins. I don't know what current is avalaible but it easily powers a 46K22, 4x20LCD and DS3231/EEP !
Jay |
|
|
Regular Guy
Joined: 04 Jun 2017 Posts: 110
|
|
Posted: Mon Nov 02, 2020 10:36 am |
|
|
Thanks dluu13 and Jay
Realterm. Thank you for that.We were looking to install a terminal program again and forgot about that one.
'you can use fprintf'
While we have accumulated some CCS hardware for future use.
Right now we are learning assembler. So. No printf.
'4x20LCD'
Oh gee! Someday we will work up to that.
Then some real excitement. A graphics display!
Thanks! _________________ PIC Hobbyist |
|
|
|