Nathan and others,
Note sure if this is the best place to discuss this, or on BM forum or email…
As mentioned in a different set of posts, I have been trying to build some C/C++ libraries for the different BAP processors. The current library is setup to build do different libs, one for the 3698 family (Bap28 maybe 24 if I find a reason to do so) and the 3687 family (Bap40 and hopefully arc32). I have most of the phoenix code ported to C and running on these libraries. My CHR-3 is currently using the Bap28 and I can control by PS2 and/or XBEE. I have also tested this code on BAP40 on a lab board and it appears like it is working. I have not yet tried to plug it in to the actual robot…
Now I would like to get it to work on the Arc32, which has a lot smaller footprint. I have a start on the pin table, but know that the early pin number text file does not match the current ARc32 PDF, which I can easily rectify. But the question is how best to handle the IO pins that are connected to the HC4052 (2x4) analog multiplex chips.
My first guesses of how this is hooked up is as follows:
The A and B select lines are connected up to standard H8 IO pins which I can guess the actual pins from previous info.
My guess is that the enable pins are connected to ground…
The X/Y pins are connected to the FTIO pins of the H8 so you can use TimerZ support (PWM?)
But since the document ion mentions you can get analog values for many(16) of these pins by HSERVOSTAT command and the FTIO pins are not analog pins, my assumption is that the X/Y pins of two of these chips is connected up to 4 analog input pins, probably the second group PB4-7) as I believe there are 4 other analog capable pins (p32-35) defined to read in VS1, VL, VS2 and a pin on Aux2 connector.
Do you have any suggestions on how best to do this, or should I punt and/or figure it out by trial and error.
Thanks
Kurt