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.
|
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.
|
|
|
|
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 > Yahoo! Groups Sponsor > ADVERTISEMENT > > > 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 > > > > > > Yahoo! Groups Sponsor > > ADVERTISEMENT > > > > > > > > > > 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 > > > > > > > > > Yahoo! Groups Sponsor > > > ADVERTISEMENT > > > > > > > > > > > > > > > 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 > > > > > > > > > > > > Yahoo! Groups Sponsor > > > > ADVERTISEMENT > > > > > > > > > > > > > > > > > > > > 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 > > > > > > > > > > > > > > > Yahoo! Groups Sponsor > > > > > ADVERTISEMENT > > > > > > > > > > > > > > > > > > > > > > > > > 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-- ******************************************* 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 > > > > > > > > > > > > > > > > > > Yahoo! Groups Sponsor > > > > > > ADVERTISEMENT > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 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
|
|
Is there an online version somewhere which I can access? I am worried about USART because if something as lowlevel has IIC has so much implementation issure (30 interrupts? I am not suprised...) I am thinking what USART would throw at me... BG --- In , techy fellow <techyf@y...> wrote: > 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 <bg3009@y...> 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 , "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 > > > > > > > > > > > > > > > > > > > > > Yahoo! Groups Sponsor > > > > > > > ADVERTISEMENT > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 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. > Yahoo! Groups Sponsor > 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. > > --------------------------------- > |
|
|
|
Nop ! There isn't any online version. You will have to purchase the
magazine from EPE website. It only cost GBP 3.00 for the magazine. Consider cheap cos
it is a past issue. They charge GBP 2.00 for delivery though. bg3009 <b...@yahoo.com> wrote: Is there an online version somewhere which I can access? I am worried
|
|
great because i am calling from near down under in Singapore.. BG --- In , techy fellow <techyf@y...> wrote: > Nop ! There isn't any online version. You will have to purchase the magazine from EPE website. It only cost GBP 3.00 for the magazine. Consider cheap cos it is a past issue. They charge GBP 2.00 for delivery though. > > bg3009 <bg3009@y...> wrote:Is there an online version somewhere which I can access? I am worried > about USART because if something as lowlevel has IIC has so much > implementation issure (30 interrupts? I am not suprised...) I am > thinking what USART would throw at me... > > BG > > --- In , techy fellow <techyf@y...> wrote: > > 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 <bg3009@y...> 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 , "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 > > > > > > > > > > > > > > > > > > > > > > > > Yahoo! Groups Sponsor > > > > > > > > ADVERTISEMENT > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 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. > > > > > > Yahoo! Groups Sponsor > > 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. > > > > > > > > --------------------------------- > > > Yahoo! Groups Sponsor > 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. > > --------------------------------- > |
|
----- Original Message ----- From: bg3009 <> To: <> Sent: Thursday, December 04, 2003 1:19 AM Subject: [piclist] Re: making USART useful > Is there an online version somewhere which I can access? I am worried > about USART because if something as lowlevel has IIC has so much > implementation issure (30 interrupts? I am not suprised...) I am > thinking what USART would throw at me... > > BG I2C (IIC as you call it) is much more complicated than RS232 which is a simple serial protocol. Handling the USART is very simple and straight forward. The first thing you really must do is get two PCs talking to each other using some sort of simple terminal program. Don't bother trying to use hyperterm. Once you have the two PCs talking try getting your PIC to just send characters to one of them using "polled" I/O (not interrupts). Before launching off and writing your own code see if you can find someone elses RS232 / PIC test code. Something that is precompiled and just needs to be downloaded into your PIC. This will excercise your hardware and prove that it is all connected and working correctly. Then try your own send code. Once you have this working, try and receive using the PIC (receive a character and send it back) again using polled I/O. Once you've done this, experiment with interrupts. Then concentrate on error handling. Then flow control. Often your error handling will be trivial and your flow control non-existant. It really is simple. Regards Sergio Masci http://www.xcprod.com/titan/XCSB - optimising structured PIC BASIC compiler . |
|
|
|
bg3009 wrote:
> My my, this is really sounding like a walk in the part...today i met > one of the local dealers for PICs..and the representative told me > that he'd done IIC before..and it was simple.. and I was really > aghast.. Reading the related papers, IIC seems simple, if two chips > are throwing bits to each other.. but once u talk about real duplex > communication.. I rather prefer a few more wires to a few more pages > of code... So, if PC to PIC, what kind of software can i use on the > PC itself if not hyperterm? > BG Hi BG, I normally use minicom on a Linux machine. I recently needed to get an old notebook talking to a PIC so I resurrected an old copy of telix (for dos). Works great. Teraterm is a great windows telnet client which I use often. It also has serial capabilities although I've never used these so cannot give a personal recommendation. But I can tell you that if you are not comfortable solving RS232 problems hyperterm will make your life a misery. Regards Sergio Masci http://www.xcprod.com/titan/XCSB - optimising structured PIC BASIC . |
|
|