i know and i appreicate that however just at the begining stage and only a hobby
so just trying to get some experience with pbp not pics
mcs is microstudio plus
does this pic have hserout2???
i know and i appreicate that however just at the begining stage and only a hobby
so just trying to get some experience with pbp not pics
mcs is microstudio plus
does this pic have hserout2???
i guess my main problem is i am trying to get data to a serial lcd driver
and cant get it to work even though there seems to be data from the pic
thats why i wanterd to try the various commands for serout to get this working this seems to be a tough area for me
thanks
Questions for Jack:
Why do you want to use HSERIN, HSEROUT? Do you know why they are not Serin and Serout? Or HSERIN2? HSEROUT 2?The masked man wants you to know those things that is why he keeps pushing the manual to you. See then you can ask questions which makes everyone's brain hurt, that is why we all do this, it's for the pain![]()
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
no pain no gain
the problem is i am unable to get a serial lcd driver to function
tried many many different things still nothing
thought different commands would inprove nothing seems to work
even though i am getting something (scope) out of the pic
tried all the serial commands and different bauds ebven thought the device states 9600 8 n 1
device did work using basic stamp instructions
Why not post your schematic and some of your code so that we can be more help. Just telling us that you have tried lots of different things with no success doesn't give anyone a starting point to help you.
It's not a basic stamp, while a stamp is a pic. HUH? WHATS THAT?
PBP will program a stamp, but pics not always the same, little differences.
Hserin will not accept N9600, has to be true.
Serin wil accept N9600. Hserin will accept charactors incomming while pic is busy running subroutines, serin will not. Do a search for serial backpacks on this forum, this subject has been addressed. look at the code in my post on this subject after Darrel did his magic on it. It's sweet, uses hserin, DT instant interrupts and formats the same way as LCDOUT does. It is pretty well commented so you can learn how it works and change it to suit you.
if you just want a serial in parallel out
try
JSCode:include "modedefs.bas" pause 500 char var byte Lcdout $fe, 1, "RTFM" pause 1000 LOOP: serin Portb.0, n9600, char LCDOUT char goto loop
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
HSERIN & HSEROUT automatically use the PIC's hardware USART pins. Which pins these are can be found in your datasheet.
Most serial LCD's require inverted data format. The hardware USART uses non-inverted, since data will normally pass through a MAX232 level converter.
If you use the hardware USART to communicate with your serial LCD, and your LCD requires inverted data, then, with HSEROUT, you'll need a TTL level converter, or use one of the other serial commands like SEROUT, SEROUT2, or DEBUG.
These commands allow you to control whether the data is inverted or non-inverted, and use just about any I/O-pin. HSEROUT does not.
still not getting a display using any of the pbp
serial out commands tried all 4 copied some programs still nothing even though the pic seems tp be transmitting something
hook up is straight foward 5- volt ,grd, and one pic pin for data out
tried many pins
using a 16f877a and very simple programs one attached
somemade mention of trisb txsta and spbrg
are these set automatically using the pbp commands if not i have no idea how to set them melanie gave some instruction on setting fuses but not sure
what i need to set
can someone help/
Bookmarks