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: Thu, 22 May 2003 08:36:00 +0000

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN">
<DIV><FONT face="Arial" size="2">Hi
Keith</FONT></DIV>
<DIV><FONT face="Arial"
size="2"></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New">>10000 is how long
to wait for a character in milliseconds before >giving up ie 10 secs.
start is the label to go to if you give up >waiting for an
input</FONT></DIV>
<DIV><FONT face="Courier
New"></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New">I see....Is there any
routines for interrupt reception&nbsp; rather than
polling??</FONT></DIV>
<DIV><FONT face="Courier
New"></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New">Currently with the OSD
program im using interrupt reception and parse the message in the interrupt
routine...But thinking about it..its not really required as i can do it in
my main loop as its doing bugger all else..</FONT></DIV>
<DIV><FONT face="Courier
New"></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New">I going to purchase the
PBP software soon is ther anything else i should need...? I have a Warp13a
programmer which i believe is microchip
compatable...</FONT></DIV>
<DIV><FONT face="Courier
New"></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New">Thanks
Again</FONT></DIV>
<DIV><FONT face="Courier
New"></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier
New">Frank</FONT></DIV>
<DIV><FONT face="Courier
New"></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New">BTW Are You / Mark
putting anything on your sites regarding the Switcher Progress ;-))..Not
having been to the meet im non the wiser with the current
status??</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face="Courier
New"></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier
New"></FONT>&nbsp;</DIV>
<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 11:01
PM</DIV>
<DIV><B>Subject:</B> [ukha_xpl] PIC Programming WAS Re:
OSD AGAIN</DIV>
<DIV></DIV><TT>Sorry, didnt spot those in there....10000
is how long to wait for a character in milliseconds before giving up ie 10
secs. start is the label to go to if you give up waiting for an input.It
can be used without the timeout and label but then if there is no input
your program will wait forever.The manual is available for download as HTML
or PDF so you can read it all and get an idea first. Go for the HTML
version because its easier to navigate.Keith--- In ukha_xpl@xxxxxxx,
"Frank Mc Alinden" <fmcalind@b...> wrote:>
loop:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Hserin 10000,
start, [char]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' Get a
char from serial port> > 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 ..> >
Frank>&nbsp;&nbsp; ----- Original Message -----
>&nbsp;&nbsp; Fr
om: Keith Doxey >&nbsp;&nbsp; To: ukha_xpl@xxxxxxx
>&nbsp;&nbsp; Sent: Wednesday, May 21, 2003 10:31
PM>&nbsp;&nbsp; Subject: [ukha_xpl] PIC Programming WAS Re: OSD
AGAIN> > >&nbsp;&nbsp; Bootloader only works on PIC that
can write to their own code space >&nbsp;&nbsp; such as 877 452
etc. These have Hardware USART so all you need is a
>&nbsp;&nbsp; MAX232 for level conversion.>
>&nbsp;&nbsp; PicBasic also has functions called SERIN and
SEROUT which do all the >&nbsp;&nbsp; bitbanging for you on non
USART PIC's.> >&nbsp;&nbsp; If you have hardware serial ports
then HSERIN and HSEROUT do it all >&nbsp;&nbsp; for you.>
>&nbsp;&nbsp; This is a tiny little program but see if it makes
sense....> >&nbsp;&nbsp;
char&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
var&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
byte&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' Storage
for serial character>&nbsp;&nbsp;
LED&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 LED> >&nbsp;&nbsp;
start:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Hserout
["Hello World", 13,
10]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' Send text followed
by >&nbsp;&nbsp; carriage return and linefeed>
>&nbsp;&nbsp;
loop:&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;&nbsp;&nbsp;&nbsp;&nbsp;
Hserout
[char]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&a
mp;nbsp; ' Send char out serial port>
>&nbsp;&nbsp;&nbsp;&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;&nbsp;&nbsp;&nbsp;
Pause 500&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '
Delay for 0.5 seconds>
>&nbsp;&nbsp;&nbsp;&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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Goto
loop&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
' Do it all over again> >&nbsp;&nbsp;&nbsp;&nbsp;&a
mp;nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
End> > >&nbsp;&nbsp; Thats all there is to it. The manual
is very good and anything you >&nbsp;&nbsp; get stuck with we
can help you out.> >&nbsp;&nbsp; Keith> > > >
>&nbsp;&nbsp; --- In ukha_xpl@xxxxxxx, "Frank Mc
Alinden" <fmcalind@b...> >&nbsp;&nbsp;
wrote:>&nbsp;&nbsp; > Yes i have been reading up on them
recently and the idea of >&nbsp;&nbsp; updating the firmware in
the field is attractive...I believe some >&nbsp;&nbsp;
bootloaders use the serial port ?? which means a bit bang uart for on
>&nbsp;&nbsp; board serial ...does yours use the serial port ??
256 bytes doesnt >&nbsp;&nbsp; seem too bad what about ram ??
Unfortunelty Keith never got into >&nbsp;&nbsp; basic
programming (had a vic 20 though ) assembler only
;-((........>&nbsp;&nbsp; > >&nb
sp;&nbsp; > Frank>&nbsp;&nbsp; .> >
>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Yahoo! Groups Sponsor
>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> >&nbsp;&nbsp; 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>>&nbsp;&nbsp;
To Post a Message: ukha_xpl@xxxxxxx>&nbsp;&nbsp; To
Subscribe:&nbsp; ukha_xpl-subscribe@xxxxxxx >&
nbsp;&nbsp; To Unsubscribe:&nbsp; ukha_xpl-unsubscribe@xxxxxxx >
>&nbsp;&nbsp; Your use of Yahoo! Groups is subject to the Yahoo!
Terms of Service.</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/term
s/";>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.