[Message Prev][Message
Next][Thread Prev][Thread Next][Message
Index][Thread Index]
Re: PIC Programming WAS Re: OSD AGAIN
- Subject: Re: PIC Programming WAS Re: OSD AGAIN
- From: Frank Mc Alinden
- Date: Wed, 21 May 2003 13:44:00 +0000
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN">
<DIV><FONT face="Arial" size="2"><FONT
face="Courier New"
size="3">loop:
Hserin 10000, start,
[char] ' Get a char from
serial port</FONT></FONT></DIV>
<DIV><FONT face="Arial" size="2">What does
the 10000 and start signify ?? My thoughts were looking for a start
character ?? I will have a closer look at this as it doesnt "seem
" too difficult to pick up ..</FONT></DIV>
<DIV><FONT face="Arial"
size="2"></FONT> </DIV>
<DIV><FONT face="Arial"
size="2">Frank</DIV></FONT>
<BLOCKQUOTE>
<DIV>----- Original Message ----- </DIV>
<DIV><B>From:</B> <A title="ukha@xxxxxxx"
href="mailto:ukha@xxxxxxx">Keith
Doxey</A> </DIV>
<DIV><B>To:</B> <A title="ukha_xpl@xxxxxxx"
href="mailto:ukha_xpl@xxxxxxx">ukha_xpl@xxxxxxx</A>
</DIV>
<DIV><B>Sent:</B> Wednesday, May 21, 2003 10:31
PM</DIV>
<DIV><B>Subject:</B> [ukha_xpl] PIC Programming WAS Re:
OSD AGAIN</DIV>
<DIV></DIV><TT>Bootloader only works on PIC that can
write to their own code space such as 877 452 etc. These have Hardware
USART so all you need is a MAX232 for level conversion.PicBasic also has
functions called SERIN and SEROUT which do all the bitbanging for you on
non USART PIC's.If you have hardware serial ports then HSERIN and HSEROUT
do it all for you.This is a tiny little program but see if it makes
sense....char
var
byte
' Storage for serial
characterLED
var
PORTB.0
' alias for B.0 connected to
LEDstart: Hserout
["Hello World", 13, 10] &am
p;nbsp; ' Send text followed by carriage return and
linefeedloop: Hserin
10000, start, [char] '
Get a char from serial port
Hserout
[char]
' Send char out serial
port
High
LED '
Turn on LED connected to
PORTB.0
Pause 500 '
Delay for 0.5
seconds
Low
LED
' Turn off LED connected to PORTB.0 &am
p;nbsp; Goto
loop
' Do it all over
again
EndThats all there is to
it. The manual is very good and anything you get stuck with we can help you
out.Keith--- In ukha_xpl@xxxxxxx, "Frank Mc Alinden"
<fmcalind@b...> wrote:> Yes i have been reading up on them
recently and the idea of updating the firmware in the field is
attractive...I believe some bootloaders use the serial port ?? which means
a bit bang uart for on board serial ...does yours use the serial port ??
256 bytes doesnt seem too bad what about ram ?? Unfortunelty Keith never
got into basic programming (had a vic 20 though ) assembler only
;-((........> > Frank.</TT><TT>xPL Links: <A
href="http://www.xplproject.org.uk">http://www.xplproject.org.uk</A>
<A href="http://www.xplhal.com">http://www.xplhal.com</A> <A
href="http://www.xpl.myby.co.uk">http://www.xpl.myby.co.uk</A>To
Post a Message: ukha_xpl@xxxxxxx Subscribe:
ukha_xpl-subscribe@xxxxxxx To Unsubscribe:
ukha_xpl-unsubscribe@xxxxxxx</TT> <TT>Your use of Yahoo! Groups
is subject to the <A href="http://docs.yahoo.com/info/terms/">Yahoo!
Terms of Service</A>.</TT> </BLOCKQUOTE>
xPL Main Index |
xPL Thread Index |
xPL Home |
Archives Home
|