CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Serial LCD Assembler Code
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Regular Guy



Joined: 04 Jun 2017
Posts: 110

View user's profile Send private message

PostPosted: Sun Nov 01, 2020 4:52 pm     Reply with quote

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

View user's profile Send private message Visit poster's website

PostPosted: Mon Nov 02, 2020 8:56 am     Reply with quote

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

View user's profile Send private message

PostPosted: Mon Nov 02, 2020 9:32 am     Reply with quote

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

View user's profile Send private message

PostPosted: Mon Nov 02, 2020 10:36 am     Reply with quote

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! Smile
_________________
PIC Hobbyist
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group