I have been working on converting my code for WALTER from Basic Atom to Atom PRO. I found that the AX0 - AX3 designations are not accepted in the Atom PRO IDE.
What pins are the analog inputs?
I know about P16 - P19 being the additional four analog inputs. Do the first four have to be specifically programmed to be analog inputs, or is this just for the additional 4 analog inputs on P16 - P19? The Atom PRO manual uses P0 - P3 for digital projects it uses to teach how to use the PRO.
I know from the manual that there are 8 analog pins.
P16-P19 and P0-P3
I believe that all 8 pins can be either in ADIN mode or digital mode. It has been a couple of months since I tried them, but I remember that I had better luck with either the ones in P0 range or P16 range, but I don’t remember which . I remember in the Renesas H8 hardware manual that the 8 analog inputs are split into two groups. Let me know what you find out as I am planning to add on some of the Sharp sensors soon.
Hopefully I will have time to get back to my robots in the next couple of days!!!
It appears that the analog pins are automatically programmed as analog inputs when you use the adin command. I was a bit confused on that because the manual doesn’t say they are automatically setup for the various uses.
All I had to do is change the values of some constants, and it looks like that is all I will need to do to convert my servo commands over to the Atom PRO. Of course, I am also converting my servo control over to be done with an SSC-32 so that really isn’t an issue now.
The regulator broke off on my ABB, so I have to fix that and I am going to get another one also, for the BRAT.