A discussion group for the PICMicro microcontroller. Also called the Microchip PIC, this list is dedicated to the use and abuse of this fine, simple, microcontroller. Close to topic posts are welcome, ie. general electronics.
|
Hey, I have a Serial LCD from www.seetron.com and it appears that when I send output to it, it appears as gibberish. Any ideas as to why? I'm using a 16F628 with picbasic from melabs. My code is: Serout 1, N2400, ("Hello") My baud rate is correctly set, so I don't see why it should error up. Thanks. |
|
|
|
Not
sure of your hardware, but you could try SEROUT 1, T2400, ("Hello")
Notice
the T instead of the N for true instead of inverted data to the
display.
Tom
|
|
|
|
Hey, It's a 2x16 Serial LCD. I tried the "T", but it didn't work. Any other ideas? I get the first few letters to be displayed okay, but the rest is gibberish. Thanks. --- In , "Tom Deutschman" <tom@w...> wrote: > Not sure of your hardware, but you could try SEROUT 1, T2400, ("Hello") > Notice the T instead of the N for true instead of inverted data to the > display. > > Tom > > -----Original Message----- > From: honamos@y... [mailto:honamos@y...] > Sent: Saturday, December 20, 2003 10:23 PM > To: > Subject: [piclist] LCD Problem > Hey, > I have a Serial LCD from www.seetron.com and it appears that when I > send output to it, it appears as gibberish. Any ideas as to why? > I'm using a 16F628 with picbasic from melabs. > > My code is: > Serout 1, N2400, ("Hello") > > My baud rate is correctly set, so I don't see why it should error up. > > Thanks. > to unsubscribe, go to http://www.yahoogroups.com and follow the > instructions > > Yahoo! Groups Sponsor > > ADVERTISEMENT <http://rd.yahoo.com/SIG=12c6bqt9e/M=266841.4316200.5507732.1261774/D= eg > roupweb/S=1706554205:HM/EXP=1072074186/A=1911859/R=0/*http://www.lifes ca > peinc.com/picasa/landing.php?capid=222&caId=1988> click here > > <http://us.adserver.yahoo.com/l? M=266841.4316200.5507732.1261774/D=egrou > pmail/S=:HM/A=1911859/rand=665515336 > _____ > > > . |
|
|
|
Hi, i'm now using MPLAB version 6.40. However, i noticed that since version 6.30, i cannot undo changes made in the code after i've complied it. For example in version 6.20, i was able to make some changes to the code, compile it, test it and if the code dod not work i could simply undo the code in MPLAB editor. However since 6.30, i can't do that any more. Any changes made are permanent after compilation and i can't undo the last changes made.... Can anyone help me on this? Regards __________________________________________________ |
|
|
|
If I recall correctly, you are using intosc, right? well, that will only sort of work for serial i/o baud rate generation. I'm guessing that what happens is the internal oscilator isn't quite exact (despite the marketing use of "precision internal oscillator" in the literature). with it being slightly off, you will get a slightly wrong baud rate divisor and the error will accumulate until the sender and receiver get out of sync and the receiver interprets the data incorrectly. You could try to play with the brg value (if picbasic lets you), try +1 or -1 though I suspect it is to no avail. A better way to go is to get a 4Mhz crystal and 2 22pF caps. www.glitchbuster.com carries them at great prices, no minimum and quick/reasonable shipping. (no affiliation, I just want him to be in business). --- In , honamos@y... wrote: > Hey, > It's a 2x16 Serial LCD. I tried the "T", but it didn't work. Any > other ideas? I get the first few letters to be displayed okay, but > the rest is gibberish. > Thanks. > --- In , "Tom Deutschman" <tom@w...> wrote: > > Not sure of your hardware, but you could try SEROUT 1, T2400, > ("Hello") > > Notice the T instead of the N for true instead of inverted data to > the > > display. > > > > Tom > > > > -----Original Message----- > > From: honamos@y... [mailto:honamos@y...] > > Sent: Saturday, December 20, 2003 10:23 PM > > To: > > Subject: [piclist] LCD Problem > > > > > > Hey, > > I have a Serial LCD from www.seetron.com and it appears that when I > > send output to it, it appears as gibberish. Any ideas as to why? > > I'm using a 16F628 with picbasic from melabs. > > > > My code is: > > Serout 1, N2400, ("Hello") > > > > My baud rate is correctly set, so I don't see why it should error > up. > > > > Thanks. > > > > > > > > > > > > to unsubscribe, go to http://www.yahoogroups.com and follow the > > instructions > > > > > > > > Yahoo! Groups Sponsor > > > > ADVERTISEMENT > > > > > <http://rd.yahoo.com/SIG=12c6bqt9e/M=266841.4316200.5507732.1261774/D= > eg > > > roupweb/S=1706554205:HM/EXP=1072074186/A=1911859/R=0/*http://www.lifes > ca > > peinc.com/picasa/landing.php?capid=222&caId=1988> click here > > > > <http://us.adserver.yahoo.com/l? > M=266841.4316200.5507732.1261774/D=egrou > > pmail/S=:HM/A=1911859/rand=665515336> > > > > > > _____ > > > > > . |
|
|
|
Most apps clear the undo buffer when a save is
performed. This might have just been fixed to adhere to the Windows standard as I
have noticed that some other nice things that I had gotten used to like F3 for
searching.
Most compilers can be configured to save or not
save when compiling so check this out. Unfortunately I work with a variety of
compilers and assemblers so this is a strong thumb suck only.
|
|
Look at Configure-Settings-Projects and you will see a selection for 'Save Files Before Build'. Set it to No or Prompt. --- In , Louis Goh <gsml1980@y...> wrote: > Hi, i'm now using MPLAB version 6.40. However, i > noticed that since version 6.30, i cannot undo changes > made in the code after i've complied it. > > For example in version 6.20, i was able to make some > changes to the code, compile it, test it and if the > code dod not work i could simply undo the code in > MPLAB editor. However since 6.30, i can't do that any > more. Any changes made are permanent after compilation > and i can't undo the last changes made.... > > Can anyone help me on this? > > Regards > > __________________________________________________ |
|
|
|
Hey, When using the external oscillator, do I set it to "XT"? If I do this, it simple does not work at all. I have a 4 MHz oscillator with 2 capacitors. Thanks. Shamoon --- In , "Phil" <phil1960us@y...> wrote: > If I recall correctly, you are using intosc, right? well, that will > only sort of work for serial i/o baud rate generation. I'm guessing > that what happens is the internal oscilator isn't quite exact > (despite the marketing use of "precision internal oscillator" in the > literature). with it being slightly off, you will get a slightly > wrong baud rate divisor and the error will accumulate until the > sender and receiver get out of sync and the receiver interprets the > data incorrectly. > > You could try to play with the brg value (if picbasic lets you), try > +1 or -1 though I suspect it is to no avail. > > A better way to go is to get a 4Mhz crystal and 2 22pF caps. > www.glitchbuster.com carries them at great prices, no minimum and > quick/reasonable shipping. (no affiliation, I just want him to be in > business). > > --- In , honamos@y... wrote: > > Hey, > > It's a 2x16 Serial LCD. I tried the "T", but it didn't work. Any > > other ideas? I get the first few letters to be displayed okay, but > > the rest is gibberish. > > > > > > Thanks. > > > > > > --- In , "Tom Deutschman" <tom@w...> wrote: > > > Not sure of your hardware, but you could try SEROUT 1, T2400, > > ("Hello") > > > Notice the T instead of the N for true instead of inverted data > to > > the > > > display. > > > > > > Tom > > > > > > -----Original Message----- > > > From: honamos@y... [mailto:honamos@y...] > > > Sent: Saturday, December 20, 2003 10:23 PM > > > To: > > > Subject: [piclist] LCD Problem > > > > > > > > > Hey, > > > I have a Serial LCD from www.seetron.com and it appears that when > I > > > send output to it, it appears as gibberish. Any ideas as to why? > > > I'm using a 16F628 with picbasic from melabs. > > > > > > My code is: > > > Serout 1, N2400, ("Hello") > > > > > > My baud rate is correctly set, so I don't see why it should error > > up. > > > > > > Thanks. > > > > > > > > > > > > > > > > > > to unsubscribe, go to http://www.yahoogroups.com and follow the > > > instructions > > > > > > > > > > > > Yahoo! Groups Sponsor > > > > > > ADVERTISEMENT > > > > > > > > > <http://rd.yahoo.com/SIG=12c6bqt9e/M=266841.4316200.5507732.1261774/D= > > eg > > > > > > roupweb/S=1706554205:HM/EXP=1072074186/A=1911859/R=0/*http://www.lifes > > ca > > > peinc.com/picasa/landing.php?capid=222&caId=1988> click here > > > > > > > <http://us.adserver.yahoo.com/l? > > M=266841.4316200.5507732.1261774/D=egrou > > > pmail/S=:HM/A=1911859/rand=665515336> > > > > > > > > > _____ > > > > > > > . |
|
|
|
Hi, i looked at v6.20 settings and they are the same as that in v6.40. If i set 'Save Files Before Build' to No, MPLAB with build with the old file and not the editted file. You have to save the file first before building, but in doing so the buffer for undo is gone??? Regards --- rtstofer <> wrote: --------------------------------- Look at Configure-Settings-Projects and you will see a selection for 'Save Files Before Build'. Set it to No or Prompt. --- In , Louis Goh <gsml1980@y...> wrote: > Hi, i'm now using MPLAB version 6.40. However, i > noticed that since version 6.30, i cannot undo changes > made in the code after i've complied it. > > For example in version 6.20, i was able to make some > changes to the code, compile it, test it and if the > code dod not work i could simply undo the code in > MPLAB editor. However since 6.30, i can't do that any > more. Any changes made are permanent after compilation > and i can't undo the last changes made.... > > Can anyone help me on this? > > Regards > > __________________________________________________ to unsubscribe, go to http://www.yahoogroups.com and follow the instructions --------------------------------- Yahoo! Groups Links To __________________________________________________ |
|
How are you doing hand shaking? --- Phil <> wrote: > If I recall correctly, you are using intosc, right? well, that will > only sort of work for serial i/o baud rate generation. I'm guessing > that what happens is the internal oscilator isn't quite exact > (despite the marketing use of "precision internal oscillator" in the > literature). with it being slightly off, you will get a slightly > wrong baud rate divisor and the error will accumulate until the > sender and receiver get out of sync and the receiver interprets the > data incorrectly. > > You could try to play with the brg value (if picbasic lets you), try > +1 or -1 though I suspect it is to no avail. > > A better way to go is to get a 4Mhz crystal and 2 22pF caps. > www.glitchbuster.com carries them at great prices, no minimum and > quick/reasonable shipping. (no affiliation, I just want him to be in > > business). > > --- In , honamos@y... wrote: > > Hey, > > It's a 2x16 Serial LCD. I tried the "T", but it didn't work. Any > > other ideas? I get the first few letters to be displayed okay, but > > > the rest is gibberish. > > > > > > Thanks. > > > > > > --- In , "Tom Deutschman" <tom@w...> wrote: > > > Not sure of your hardware, but you could try SEROUT 1, T2400, > > ("Hello") > > > Notice the T instead of the N for true instead of inverted data > to > > the > > > display. > > > > > > Tom > > > > > > -----Original Message----- > > > From: honamos@y... [mailto:honamos@y...] > > > Sent: Saturday, December 20, 2003 10:23 PM > > > To: > > > Subject: [piclist] LCD Problem > > > > > > > > > Hey, > > > I have a Serial LCD from www.seetron.com and it appears that when > > I > > > send output to it, it appears as gibberish. Any ideas as to why? > > > I'm using a 16F628 with picbasic from melabs. > > > > > > My code is: > > > Serout 1, N2400, ("Hello") > > > > > > My baud rate is correctly set, so I don't see why it should error > > > up. > > > > > > Thanks. > > > > > > > > > > > > > > > > > > to unsubscribe, go to http://www.yahoogroups.com and follow the > > > instructions > > > > > > > > > > > > Yahoo! Groups Sponsor > > > > > > ADVERTISEMENT > > > > > > > > > <http://rd.yahoo.com/SIG=12c6bqt9e/M=266841.4316200.5507732.1261774/D= > > eg > > > > > > roupweb/S=1706554205:HM/EXP=1072074186/A=1911859/R=0/*http://www.lifes > > ca > > > peinc.com/picasa/landing.php?capid=222&caId=1988> click here > > > > > > > <http://us.adserver.yahoo.com/l? > > M=266841.4316200.5507732.1261774/D=egrou > > > pmail/S=:HM/A=1911859/rand=665515336> > > > > > > > > > _____ > > > > > > > . __________________________________ |
|
The data sheet in section 14.2 says that you use XT for 4 mhz so you're ok there. It also says that higher cap values are more stable. you might want to double check your connections. ceramic resonators (what I think you have) can sometimes be finnicky. Check the data sheet , it says that in some situations you need a serial resistor. I much prefer crystals - cheap, accurate and reliable. I've never gotten serial I/O to work with INTOSC. Also, if you can tell picbasic the clock rate, you could try different clock rates (like 3.95mhz or 4.05mhz) to see if that helped. --- In , honamos@y... wrote: > Hey, > When using the external oscillator, do I set it to "XT"? If I do > this, it simple does not work at all. I have a 4 MHz oscillator with > 2 capacitors. > Thanks. > Shamoon > --- In , "Phil" <phil1960us@y...> wrote: > > If I recall correctly, you are using intosc, right? well, that > will > > only sort of work for serial i/o baud rate generation. I'm > guessing > > that what happens is the internal oscilator isn't quite exact > > (despite the marketing use of "precision internal oscillator" in > the > > literature). with it being slightly off, you will get a slightly > > wrong baud rate divisor and the error will accumulate until the > > sender and receiver get out of sync and the receiver interprets the > > data incorrectly. > > > > You could try to play with the brg value (if picbasic lets you), > try > > +1 or -1 though I suspect it is to no avail. > > > > A better way to go is to get a 4Mhz crystal and 2 22pF caps. > > www.glitchbuster.com carries them at great prices, no minimum and > > quick/reasonable shipping. (no affiliation, I just want him to be > in > > business). |
|
|
|
I have a 4.000MHZ crystal and 2 22pF cap's. I have it set to XT and still no dice. With XT, nothing works and with INTRC, it works but spits out garbage. Thoughts? --- In , "Phil" <phil1960us@y...> wrote: > The data sheet in section 14.2 says that you use XT for 4 mhz so > you're ok there. It also says that higher cap values are more > stable. you might want to double check your connections. ceramic > resonators (what I think you have) can sometimes be finnicky. Check > the data sheet , it says that in some situations you need a serial > resistor. > > I much prefer crystals - cheap, accurate and reliable. I've never > gotten serial I/O to work with INTOSC. > > Also, if you can tell picbasic the clock rate, you could try > different clock rates (like 3.95mhz or 4.05mhz) to see if that helped. > > --- In , honamos@y... wrote: > > Hey, > > When using the external oscillator, do I set it to "XT"? If I do > > this, it simple does not work at all. I have a 4 MHz oscillator > with > > 2 capacitors. > > Thanks. > > Shamoon > > > > > > --- In , "Phil" <phil1960us@y...> wrote: > > > If I recall correctly, you are using intosc, right? well, that > > will > > > only sort of work for serial i/o baud rate generation. I'm > > guessing > > > that what happens is the internal oscilator isn't quite exact > > > (despite the marketing use of "precision internal oscillator" in > > the > > > literature). with it being slightly off, you will get a slightly > > > wrong baud rate divisor and the error will accumulate until the > > > sender and receiver get out of sync and the receiver interprets > the > > > data incorrectly. > > > > > > You could try to play with the brg value (if picbasic lets you), > > try > > > +1 or -1 though I suspect it is to no avail. > > > > > > A better way to go is to get a 4Mhz crystal and 2 22pF caps. > > > www.glitchbuster.com carries them at great prices, no minimum and > > > quick/reasonable shipping. (no affiliation, I just want him to > be > > in > > > business). |