The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[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:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Hserin 10000, start,
[char]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' 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>&nbsp;</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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
var&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
byte&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' Storage for serial
characterLED&nbsp;&nbsp;&nbsp;&nbsp;
var&nbsp;&nbsp;&nbsp;&nbsp;
PORTB.0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
' alias for B.0 connected to
LEDstart:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Hserout
["Hello World", 13, 10]&nbsp;&nbsp;&nbsp;&am
p;nbsp;&nbsp; ' Send text followed by carriage return and
linefeedloop:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Hserin
10000, start, [char]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '
Get a char from serial port&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Hserout
[char]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' Send char out serial
port&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
High
LED&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '
Turn on LED connected to
PORTB.0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Pause 500&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '
Delay for 0.5
seconds&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Low
LED&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
' Turn off LED connected to PORTB.0&nbsp;&nbsp;&am
p;nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Goto
loop&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' Do it all over
again&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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:&nbsp;
ukha_xpl-subscribe@xxxxxxx To Unsubscribe:&nbsp;
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

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.