making USART useful

Started by bg3009 November 30, 2003
I just bought a 877 chip for interfacing with my 818 viz IIC. As I
found out, this chip has USART on board and can be interfaced with a
PC terminal. What kind of things can be done with such a facility?

BG



I installed a bootloader program on the 877 and program with the serial port on my computer.
I don't have to remove the chip, put it in the programmer, program it, remove it from programmer, put it on circuit board.
Rinse and repeat.
I tried to do ICSP but couldn't get it to work.
 
----- Original Message -----
From: bg3009
To: p...@yahoogroups.com
Sent: Sunday, November 30, 2003 8:53 AM
Subject: [piclist] making USART useful

I just bought a 877 chip for interfacing with my 818 viz IIC. As I
found out, this chip has USART on board and can be interfaced with a
PC terminal. What kind of things can be done with such a facility?

BG



to unsubscribe, go to http://www.yahoogroups.com and follow the instructions

">Yahoo! Terms of Service.



You can get the '877 resident PicLoader at
http://www.junun.org/MarkIII/PICLoader.jsp - just download the hex
file unless you want to get into the assembly language details.
Program this into the chip. This version uses 38.4 kB and is
modified from the version distributed by the author - Ric Farmer.

Now get the BotLoader code from the files section at the Yahoo
MiniSumo Mark III group. This is a Windows application for
downloading .hex files to the '877. It also has a terminal window
for interactive communications with the chip.

It is possible, but not supported, to communicate with PicLoader
using HyperTerminal. Just make sure the end-of-line delay is set at
100 mS, no flow control, 38.4k,8,n,1 and there is a chance it will
work. --- In , "Bob Hedges" <bhmtr@m...> wrote:
> I installed a bootloader program on the 877 and program with the
serial port on my computer.
> I don't have to remove the chip, put it in the programmer, program
it, remove it from programmer, put it on circuit board.
> Rinse and repeat.
> I tried to do ICSP but couldn't get it to work.
>
> ----- Original Message -----
> From: bg3009
> To:
> Sent: Sunday, November 30, 2003 8:53 AM
> Subject: [piclist] making USART useful > I just bought a 877 chip for interfacing with my 818 viz IIC. As
I
> found out, this chip has USART on board and can be interfaced
with a
> PC terminal. What kind of things can be done with such a
facility?
>
> BG >
>
> to unsubscribe, go to http://www.yahoogroups.com and follow the
instructions
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service.



rt,

Have you tried this? I am hoping to make it read data from
another chip using IIC and using USART to read that data the 877 gets
from the slave... have u built this thing?

BG
--- In , "rtstofer" <rstofer@p...> wrote:
> You can get the '877 resident PicLoader at
> http://www.junun.org/MarkIII/PICLoader.jsp - just download the hex
> file unless you want to get into the assembly language details.
> Program this into the chip. This version uses 38.4 kB and is
> modified from the version distributed by the author - Ric Farmer.
>
> Now get the BotLoader code from the files section at the Yahoo
> MiniSumo Mark III group. This is a Windows application for
> downloading .hex files to the '877. It also has a terminal window
> for interactive communications with the chip.
>
> It is possible, but not supported, to communicate with PicLoader
> using HyperTerminal. Just make sure the end-of-line delay is set
at
> 100 mS, no flow control, 38.4k,8,n,1 and there is a chance it will
> work. > --- In , "Bob Hedges" <bhmtr@m...> wrote:
> > I installed a bootloader program on the 877 and program with the
> serial port on my computer.
> > I don't have to remove the chip, put it in the programmer,
program
> it, remove it from programmer, put it on circuit board.
> > Rinse and repeat.
> > I tried to do ICSP but couldn't get it to work.
> >
> > ----- Original Message -----
> > From: bg3009
> > To:
> > Sent: Sunday, November 30, 2003 8:53 AM
> > Subject: [piclist] making USART useful
> >
> >
> > I just bought a 877 chip for interfacing with my 818 viz IIC.
As
> I
> > found out, this chip has USART on board and can be interfaced
> with a
> > PC terminal. What kind of things can be done with such a
> facility?
> >
> > BG
> >
> >
> >
> >
> >
> >
> >
> > to unsubscribe, go to http://www.yahoogroups.com and follow the
> instructions
> >
> > Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service.






I use PicLoader/BotLoader almost daily on my Mark III robots and a
couple of development boards. The terminal mode is useful for
debugging messages from the PIC. Mostly I just use it to download
code for testing. No point in using a PIC programmer during the
early stages of development.

I haven't needed I2C enough to work through the issues. I did have
it working on an OOPIC and an 80C552 with an I2C LCD display. --- In , "bg3009" <bg3009@y...> wrote:
> rt,
>
> Have you tried this? I am hoping to make it read data from
> another chip using IIC and using USART to read that data the 877
gets
> from the slave... have u built this thing?
>
> BG
> --- In , "rtstofer" <rstofer@p...> wrote:
> > You can get the '877 resident PicLoader at
> > http://www.junun.org/MarkIII/PICLoader.jsp - just download the
hex
> > file unless you want to get into the assembly language details.
> > Program this into the chip. This version uses 38.4 kB and is
> > modified from the version distributed by the author - Ric Farmer.
> >
> > Now get the BotLoader code from the files section at the Yahoo
> > MiniSumo Mark III group. This is a Windows application for
> > downloading .hex files to the '877. It also has a terminal
window
> > for interactive communications with the chip.
> >
> > It is possible, but not supported, to communicate with PicLoader
> > using HyperTerminal. Just make sure the end-of-line delay is
set
> at
> > 100 mS, no flow control, 38.4k,8,n,1 and there is a chance it
will
> > work.
> >
> >
> > --- In , "Bob Hedges" <bhmtr@m...> wrote:
> > > I installed a bootloader program on the 877 and program with
the
> > serial port on my computer.
> > > I don't have to remove the chip, put it in the programmer,
> program
> > it, remove it from programmer, put it on circuit board.
> > > Rinse and repeat.
> > > I tried to do ICSP but couldn't get it to work.
> > >
> > > ----- Original Message -----
> > > From: bg3009
> > > To:
> > > Sent: Sunday, November 30, 2003 8:53 AM
> > > Subject: [piclist] making USART useful
> > >
> > >
> > > I just bought a 877 chip for interfacing with my 818 viz
IIC.
> As
> > I
> > > found out, this chip has USART on board and can be
interfaced
> > with a
> > > PC terminal. What kind of things can be done with such a
> > facility?
> > >
> > > BG
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > to unsubscribe, go to http://www.yahoogroups.com and follow
the
> > instructions
> > >
> > > Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> > Service.





Wow, this is beginning to look really complicated...I did look
through the website and I feel that its what I need as far as USART
is concerned. But I think I already have my hands full trying to
establish IIC link between two pics as the issues are almost fraying
my nerves.. The biggest prob is to monitor the output and what could
be the best way?

BG --- In , "rtstofer" <rstofer@p...> wrote:
>
> I use PicLoader/BotLoader almost daily on my Mark III robots and a
> couple of development boards. The terminal mode is useful for
> debugging messages from the PIC. Mostly I just use it to download
> code for testing. No point in using a PIC programmer during the
> early stages of development.
>
> I haven't needed I2C enough to work through the issues. I did have
> it working on an OOPIC and an 80C552 with an I2C LCD display. > --- In , "bg3009" <bg3009@y...> wrote:
> > rt,
> >
> > Have you tried this? I am hoping to make it read data from
> > another chip using IIC and using USART to read that data the 877
> gets
> > from the slave... have u built this thing?
> >
> > BG
> > --- In , "rtstofer" <rstofer@p...> wrote:
> > > You can get the '877 resident PicLoader at
> > > http://www.junun.org/MarkIII/PICLoader.jsp - just download the
> hex
> > > file unless you want to get into the assembly language
details.
> > > Program this into the chip. This version uses 38.4 kB and is
> > > modified from the version distributed by the author - Ric
Farmer.
> > >
> > > Now get the BotLoader code from the files section at the Yahoo
> > > MiniSumo Mark III group. This is a Windows application for
> > > downloading .hex files to the '877. It also has a terminal
> window
> > > for interactive communications with the chip.
> > >
> > > It is possible, but not supported, to communicate with
PicLoader
> > > using HyperTerminal. Just make sure the end-of-line delay is
> set
> > at
> > > 100 mS, no flow control, 38.4k,8,n,1 and there is a chance it
> will
> > > work.
> > >
> > >
> > > --- In , "Bob Hedges" <bhmtr@m...> wrote:
> > > > I installed a bootloader program on the 877 and program with
> the
> > > serial port on my computer.
> > > > I don't have to remove the chip, put it in the programmer,
> > program
> > > it, remove it from programmer, put it on circuit board.
> > > > Rinse and repeat.
> > > > I tried to do ICSP but couldn't get it to work.
> > > >
> > > > ----- Original Message -----
> > > > From: bg3009
> > > > To:
> > > > Sent: Sunday, November 30, 2003 8:53 AM
> > > > Subject: [piclist] making USART useful
> > > >
> > > >
> > > > I just bought a 877 chip for interfacing with my 818 viz
> IIC.
> > As
> > > I
> > > > found out, this chip has USART on board and can be
> interfaced
> > > with a
> > > > PC terminal. What kind of things can be done with such a
> > > facility?
> > > >
> > > > BG
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > to unsubscribe, go to http://www.yahoogroups.com and follow
> the
> > > instructions
> > > >
> > > > Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> > > Service.





Compared to IIC, getting the USART working is a walk in the park.
Its quite useful for simply printing out various values from your
program(s). For example, I'm using it to print the hex value of
various registers read by my mssp ISR using a terminal program on my
pc. (yes, I know it disrupts the timing of the IIC stuff but if it
aint working you've got to see what's going on.) clearly there are
more significant uses.

I viewed getting the usart working as part of getting my tools in
line before tackling the real work. Plus, there is a certain
gratification actually seeing "hello world" come out of the pic. You
know you are on the right track. small victories...

--- In , "bg3009" <bg3009@y...> wrote:
> Wow, this is beginning to look really complicated...I did look
> through the website and I feel that its what I need as far as USART
> is concerned. But I think I already have my hands full trying to
> establish IIC link between two pics as the issues are almost
fraying
> my nerves.. The biggest prob is to monitor the output and what
could
> be the best way?
>
> BG > --- In , "rtstofer" <rstofer@p...> wrote:
> >
> > I use PicLoader/BotLoader almost daily on my Mark III robots and
a
> > couple of development boards. The terminal mode is useful for
> > debugging messages from the PIC. Mostly I just use it to
download
> > code for testing. No point in using a PIC programmer during the
> > early stages of development.
> >
> > I haven't needed I2C enough to work through the issues. I did
have
> > it working on an OOPIC and an 80C552 with an I2C LCD display.
> >
> >
> > --- In , "bg3009" <bg3009@y...> wrote:
> > > rt,
> > >
> > > Have you tried this? I am hoping to make it read data from
> > > another chip using IIC and using USART to read that data the
877
> > gets
> > > from the slave... have u built this thing?
> > >
> > > BG
> > > --- In , "rtstofer" <rstofer@p...> wrote:
> > > > You can get the '877 resident PicLoader at
> > > > http://www.junun.org/MarkIII/PICLoader.jsp - just download
the
> > hex
> > > > file unless you want to get into the assembly language
> details.
> > > > Program this into the chip. This version uses 38.4 kB and is
> > > > modified from the version distributed by the author - Ric
> Farmer.
> > > >
> > > > Now get the BotLoader code from the files section at the
Yahoo
> > > > MiniSumo Mark III group. This is a Windows application for
> > > > downloading .hex files to the '877. It also has a terminal
> > window
> > > > for interactive communications with the chip.
> > > >
> > > > It is possible, but not supported, to communicate with
> PicLoader
> > > > using HyperTerminal. Just make sure the end-of-line delay is
> > set
> > > at
> > > > 100 mS, no flow control, 38.4k,8,n,1 and there is a chance it
> > will
> > > > work.
> > > >
> > > >
> > > > --- In , "Bob Hedges" <bhmtr@m...>
wrote:
> > > > > I installed a bootloader program on the 877 and program
with
> > the
> > > > serial port on my computer.
> > > > > I don't have to remove the chip, put it in the programmer,
> > > program
> > > > it, remove it from programmer, put it on circuit board.
> > > > > Rinse and repeat.
> > > > > I tried to do ICSP but couldn't get it to work.
> > > > >
> > > > > ----- Original Message -----
> > > > > From: bg3009
> > > > > To:
> > > > > Sent: Sunday, November 30, 2003 8:53 AM
> > > > > Subject: [piclist] making USART useful
> > > > >
> > > > >
> > > > > I just bought a 877 chip for interfacing with my 818 viz
> > IIC.
> > > As
> > > > I
> > > > > found out, this chip has USART on board and can be
> > interfaced
> > > > with a
> > > > > PC terminal. What kind of things can be done with such a
> > > > facility?
> > > > >
> > > > > BG
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > to unsubscribe, go to http://www.yahoogroups.com and
follow
> > the
> > > > instructions
> > > > >
> > > > > Your use of Yahoo! Groups is subject to the Yahoo! Terms
of
> > > > Service.





IIC and USART are sort of worlds apart.......
Haven't used IIC on the PIC yet, but are using the USART right now and its very simple.
Only time I've done IIC was on a Intel 80552 for a serial EEPROM link.....
And if I remember correctly the IIC hardware had about 30 interrupt vectors associated with
it, for all sorts of errorhandeling and stuff
Good luck to you!  (hehe).
 

bg3009 wrote:

 Wow, this is beginning to look really complicated...I did look
through the website and I feel that its what I need as far as USART
is concerned. But I think I already have my hands full trying to
establish IIC link between two pics as the issues are almost fraying
my nerves.. The biggest prob is to monitor the output and what could
be the best way?

BG

--
*******************************************
VISIT MY HOME PAGE:
<http://home.online.no/~eikarlse/index.htm>
LAST UPDATED: 23/08/2003
*******************************************
Best Regards
Eirik Karlsen
 

well so much for small victories I haven't even been able to make
hello world come out on a LCD! But the real purpose I am thinking of
the USART is for debugging the MSSP which reads from a slave pic some
bits. So There has to be some way of seeing this bits come out of the
877. I would be glad to see some value on the PC screen at least.
Like send a read command so that the 877 reads from the slave via IIC
and then sends the data via USART to the PC so the values are
reflected on the screen... Would that be still a walk in the part?
Also, I am trying to do something different here.. (except maybe
AN734) which is to make IIC communications more hassle free using the
least amount of code

BG

--- In , "Phil" <phil1960us@y...> wrote:
> Compared to IIC, getting the USART working is a walk in the park.
> Its quite useful for simply printing out various values from your
> program(s). For example, I'm using it to print the hex value of
> various registers read by my mssp ISR using a terminal program on
my
> pc. (yes, I know it disrupts the timing of the IIC stuff but if it
> aint working you've got to see what's going on.) clearly there are
> more significant uses.
>
> I viewed getting the usart working as part of getting my tools in
> line before tackling the real work. Plus, there is a certain
> gratification actually seeing "hello world" come out of the pic.
You
> know you are on the right track. small victories...
>
> --- In , "bg3009" <bg3009@y...> wrote:
> > Wow, this is beginning to look really complicated...I did look
> > through the website and I feel that its what I need as far as
USART
> > is concerned. But I think I already have my hands full trying to
> > establish IIC link between two pics as the issues are almost
> fraying
> > my nerves.. The biggest prob is to monitor the output and what
> could
> > be the best way?
> >
> > BG
> >
> >
> > --- In , "rtstofer" <rstofer@p...> wrote:
> > >
> > > I use PicLoader/BotLoader almost daily on my Mark III robots
and
> a
> > > couple of development boards. The terminal mode is useful for
> > > debugging messages from the PIC. Mostly I just use it to
> download
> > > code for testing. No point in using a PIC programmer during
the
> > > early stages of development.
> > >
> > > I haven't needed I2C enough to work through the issues. I did
> have
> > > it working on an OOPIC and an 80C552 with an I2C LCD display.
> > >
> > >
> > > --- In , "bg3009" <bg3009@y...> wrote:
> > > > rt,
> > > >
> > > > Have you tried this? I am hoping to make it read data
from
> > > > another chip using IIC and using USART to read that data the
> 877
> > > gets
> > > > from the slave... have u built this thing?
> > > >
> > > > BG
> > > > --- In , "rtstofer" <rstofer@p...>
wrote:
> > > > > You can get the '877 resident PicLoader at
> > > > > http://www.junun.org/MarkIII/PICLoader.jsp - just download
> the
> > > hex
> > > > > file unless you want to get into the assembly language
> > details.
> > > > > Program this into the chip. This version uses 38.4 kB and
is
> > > > > modified from the version distributed by the author - Ric
> > Farmer.
> > > > >
> > > > > Now get the BotLoader code from the files section at the
> Yahoo
> > > > > MiniSumo Mark III group. This is a Windows application for
> > > > > downloading .hex files to the '877. It also has a terminal
> > > window
> > > > > for interactive communications with the chip.
> > > > >
> > > > > It is possible, but not supported, to communicate with
> > PicLoader
> > > > > using HyperTerminal. Just make sure the end-of-line delay
is
> > > set
> > > > at
> > > > > 100 mS, no flow control, 38.4k,8,n,1 and there is a chance
it
> > > will
> > > > > work.
> > > > >
> > > > >
> > > > > --- In , "Bob Hedges" <bhmtr@m...>
> wrote:
> > > > > > I installed a bootloader program on the 877 and program
> with
> > > the
> > > > > serial port on my computer.
> > > > > > I don't have to remove the chip, put it in the
programmer,
> > > > program
> > > > > it, remove it from programmer, put it on circuit board.
> > > > > > Rinse and repeat.
> > > > > > I tried to do ICSP but couldn't get it to work.
> > > > > >
> > > > > > ----- Original Message -----
> > > > > > From: bg3009
> > > > > > To:
> > > > > > Sent: Sunday, November 30, 2003 8:53 AM
> > > > > > Subject: [piclist] making USART useful
> > > > > >
> > > > > >
> > > > > > I just bought a 877 chip for interfacing with my 818
viz
> > > IIC.
> > > > As
> > > > > I
> > > > > > found out, this chip has USART on board and can be
> > > interfaced
> > > > > with a
> > > > > > PC terminal. What kind of things can be done with such
a
> > > > > facility?
> > > > > >
> > > > > > BG
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > to unsubscribe, go to http://www.yahoogroups.com and
> follow
> > > the
> > > > > instructions
> > > > > >
> > > > > > Your use of Yahoo! Groups is subject to the Yahoo!
Terms
> of
> > > > > Service.





A constructional project called the 'ICEBreaker' is in the EPE March 2000 issue. It is about using a 877 as an emulator and debugger. The project was written by Mark Stuart. The board can be connected to a PC and can also output signals/ text to a LCD. Not sure whether you are looking for something similar to this one.

bg3009 <b...@yahoo.com> wrote:
well so much for small victories I haven't even been able to make
hello world come out on a LCD! But the real purpose I am thinking of
the USART is for debugging the MSSP which reads from a slave pic some
bits. So There has to be some way of seeing this bits come out of the
877. I would be glad to see some value on the PC screen at least.
Like send a read command so that the 877 reads from the slave via IIC
and then sends the data via USART to the PC so the values are
reflected on the screen... Would that be still a walk in the part?
Also, I am trying to do something different here.. (except maybe
AN734) which is to make IIC communications more hassle free using the
least amount of code

BG

--- In p...@yahoogroups.com, "Phil" <phil1960us@y...> wrote:
> Compared to IIC, getting the USART working is a walk in the park. 
> Its quite useful for simply printing out various values from your
> program(s).  For example, I'm using it to print the hex value of
> various registers read by my mssp ISR using a terminal program on
my
> pc. (yes, I know it disrupts the timing of the IIC stuff but if it
> aint working you've got to see what's going on.)  clearly there are
> more significant uses.
>
> I viewed getting the usart working as part of getting my tools in
> line before tackling the real work.  Plus, there is a certain
> gratification actually seeing "hello world" come out of the pic. 
You
> know you are on the right track. small victories...
>
> --- In p...@yahoogroups.com, "bg3009" <bg3009@y...> wrote:
> > Wow, this is beginning to look really complicated...I did look
> > through the website and I feel that its what I need as far as
USART
> > is concerned. But I think I already have my hands full trying to
> > establish IIC link between two pics as the issues are almost
> fraying
> > my nerves.. The biggest prob is to monitor the output and what
> could
> > be the best way?
> >
> > BG
> >
> >
> > --- In p...@yahoogroups.com, "rtstofer" <rstofer@p...> wrote:
> > >
> > > I use PicLoader/BotLoader almost daily on my Mark III robots
and
> a
> > > couple of development boards.  The terminal mode is useful for
> > > debugging messages from the PIC.  Mostly I just use it to
> download
> > > code for testing.  No point in using a PIC programmer during
the
> > > early stages of development.
> > >
> > > I haven't needed I2C enough to work through the issues.  I did
> have
> > > it working on an OOPIC and an 80C552 with an I2C LCD display.
> > >
> > >
> > > --- In p...@yahoogroups.com, "bg3009" <bg3009@y...> wrote:
> > > > rt,
> > > >
> > > >     Have you tried this? I am hoping to make it read data 
from
> > > > another chip using IIC and using USART to read that data the
> 877
> > > gets
> > > > from the slave... have u built this thing?
> > > >
> > > > BG
> > > > --- In p...@yahoogroups.com, "rtstofer" <rstofer@p...>
wrote:
> > > > > You can get the '877 resident PicLoader at
> > > > > http://www.junun.org/MarkIII/PICLoader.jsp - just download
> the
> > > hex
> > > > > file unless you want to get into the assembly language
> > details. 
> > > > > Program this into the chip.  This version uses 38.4 kB and
is
> > > > > modified from the version distributed by the author - Ric
> > Farmer.
> > > > >
> > > > > Now get the BotLoader code from the files section at the
> Yahoo
> > > > > MiniSumo Mark III group.  This is a Windows application for
> > > > > downloading .hex files to the '877.  It also has a terminal
> > > window
> > > > > for interactive communications with the chip.
> > > > >
> > > > > It is possible, but not supported, to communicate with
> > PicLoader
> > > > > using HyperTerminal.  Just make sure the end-of-line delay
is
> > > set
> > > > at
> > > > > 100 mS, no flow control, 38.4k,8,n,1 and there is a chance
it
> > > will
> > > > > work.
> > > > >
> > > > >
> > > > > --- In p...@yahoogroups.com, "Bob Hedges" <bhmtr@m...>
> wrote:
> > > > > > I installed a bootloader program on the 877 and program
> with
> > > the
> > > > > serial port on my computer.
> > > > > > I don't have to remove the chip, put it in the
programmer,
> > > > program
> > > > > it, remove it from programmer, put it on circuit board.
> > > > > > Rinse and repeat.
> > > > > > I tried to do ICSP but couldn't get it to work.
> > > > > >
> > > > > >   ----- Original Message -----
> > > > > >   From: bg3009
> > > > > >   To: p...@yahoogroups.com
> > > > > >   Sent: Sunday, November 30, 2003 8:53 AM
> > > > > >   Subject: [piclist] making USART useful
> > > > > >
> > > > > >
> > > > > >   I just bought a 877 chip for interfacing with my 818
viz
> > > IIC.
> > > > As
> > > > > I
> > > > > >   found out, this chip has USART on board and can be
> > > interfaced
> > > > > with a
> > > > > >   PC terminal. What kind of things can be done with such
a
> > > > > facility?
> > > > > >
> > > > > >   BG
> > > > > >
> > > > > >
> > > > > >        
> > > > > >             
> > > > > >       
> > > > > >       
> > > > > >
> > > > > >   to unsubscribe, go to http://www.yahoogroups.com and
> follow
> > > the
> > > > > instructions
> > > > > >
> > > > > >   ">Yahoo! Terms of Service.