Discussion forum for the BasicX family of microcontroller chips.
|
Hi, I am working on semiautonomous robotic system. As a core processor is Bx24. Till now everything was more or less fine. Now I've run out of ADC inputs. Therefore I think about using another BX24 in order to process ADC input data and send the results to the first Bx24. Both Coms are used already. Therefore I think that a network (SPI as I understand) could be a solution. Is there any good examples about BX24 networking (including code). I could not find any on Netmedia web site. Thank You in advance. |
|
|
|
Another option would be to implement an external ADC. The following is an eight channel 12-bit A/D converters. http://www.phanderson.com/basicx/mcp3208.html Regards, Thad --- ahvah2805 <> wrote: > Hi, > > I am working on semiautonomous robotic system. > As a core processor is Bx24. > Till now everything was more or less fine. Now I've > run out of ADC inputs. Therefore I think about using > > another BX24 in order to process ADC input data and > send > the results to the first Bx24. > Both Coms are used already. > Therefore I think that a network (SPI as I > understand) > could be a solution. > Is there any good examples about BX24 networking > (including code). I > could not find any on Netmedia web site. > > Thank You in advance. __________________________________ |
|
There is a technique similar to multiplexing a bit such that both logical data and ADC can be shared on the same pin. The ADC period could be very short assuming the ADC source is stable during the sample. Sorry I don't have an example but I thought I'd at least stir the waters a bit and perhaps some of those excellent programmers out in BX land will have more input. Don --- In , "ahvah2805" <ahvah@n...> wrote: > Hi, > > I am working on semiautonomous robotic system. > As a core processor is Bx24. > Till now everything was more or less fine. Now I've > run out of ADC inputs. Therefore I think about using > another BX24 in order to process ADC input data and send > the results to the first Bx24. > Both Coms are used already. > Therefore I think that a network (SPI as I understand) > could be a solution. > Is there any good examples about BX24 networking (including code). I > could not find any on Netmedia web site. > > Thank You in advance. |
|
|
|
The CD4016 & CD4066 are both used multiplexing analog and digital signals. However, you would still need a 2-to-4 or a 3-to-8 multiplexer to select which line to "look" at... Not a complete answer, but a direction. Regards, Thad --- Don Lewis <> wrote: > There is a technique similar to multiplexing a bit > such that both logical data and ADC can be shared on > the > same pin. The ADC period could be very short > assuming > the ADC source is stable during the sample. > Sorry I don't have an example but I thought I'd at > least stir > the waters a bit and perhaps some of those excellent > programmers > out in BX land will have more input. > > Don > > --- In , "ahvah2805" > <ahvah@n...> wrote: > > Hi, > > > > I am working on semiautonomous robotic system. > > As a core processor is Bx24. > > Till now everything was more or less fine. Now > I've > > run out of ADC inputs. Therefore I think about > using > > another BX24 in order to process ADC input data > and send > > the results to the first Bx24. > > Both Coms are used already. > > Therefore I think that a network (SPI as I > understand) > > could be a solution. > > Is there any good examples about BX24 networking > (including code). I > > could not find any on Netmedia web site. > > > > Thank You in advance. __________________________________ |
|
--- In , Neil Jepsen <njepsen@i...> wrote: > There's nothing to stop you having several com3 ports on one chip. You don't mean having several simultaneously active Com3 ports, do you? Perhaps I'm mistaken but I thought that you could only have one active Com3 at a time. In order to have several Com3 ports, my understanding was that you needed to activate them sequentially and this will work fine as long at none of the senders transmit while their respective Com3 is not active. |
|
|
|
Theres nothing to stop you having several com3 ports on one chip. neil Don Lewis wrote: > There is a technique similar to multiplexing a bit > such that both logical data and ADC can be shared on the > same pin. The ADC period could be very short assuming > the ADC source is stable during the sample. > Sorry I don't have an example but I thought I'd at least stir > the waters a bit and perhaps some of those excellent programmers > out in BX land will have more input. > > Don > > --- In , "ahvah2805" <ahvah@n...> wrote: > > Hi, > > > > I am working on semiautonomous robotic system. > > As a core processor is Bx24. > > Till now everything was more or less fine. Now I've > > run out of ADC inputs. Therefore I think about using > > another BX24 in order to process ADC input data and send > > the results to the first Bx24. > > Both Coms are used already. > > Therefore I think that a network (SPI as I understand) > > could be a solution. > > Is there any good examples about BX24 networking (including code). I > > could not find any on Netmedia web site. > > > > Thank You in advance. > ------------------------------------------------------------------------ > *>. |
|
|
|
Yes that's what I meant. If you could live with MUXing the com3 ports..that works fine. Perhaps speed may be a problem? I have a product where I mux com3 between a radio, and 3 LCD displays and it works fine. neil Don Kinzer wrote: > --- In , Neil Jepsen <njepsen@i...> wrote: > > There's nothing to stop you having several com3 ports on one chip. > > You don't mean having several simultaneously active Com3 ports, do > you? > > Perhaps I'm mistaken but I thought that you could only have one > active Com3 at a time. In order to have several Com3 ports, my > understanding was that you needed to activate them sequentially and > this will work fine as long at none of the senders transmit while > their respective Com3 is not active. > > > *Yahoo! Groups Sponsor* > ADVERTISEMENT > <http://rd.yahoo.com/SIG=1293lbl0g/M=295196.4901138.6071305.3001176/D=groups/S=1706554205:HM/EXP=1085540351/A=2128215/R=0/SIG=10se96mf6/*http://companion.yahoo.com > > ------------------------------------------------------------------------ > *>. |