-
1Step 1
The AD7606 Module has 3 modes of operation:
- 16 bit parallel
- 8 bit parallel
- and serial
This table shows the configuration options:
As you can see, to use serial or 8 bit (Byte, 8080) mode, you need to connect the PAR/SER/BYTE SEL pin to +.
The module has configuration resistors for this:
The first problem is that the labeling is confusing. As we have seen in the table, in both the 8 bit (8080) and serial modes we need the pin to be connected to VCC. The "8080" label however is located next to the resistor connected to ground. When this resistor is placed, the module is firmly configured for 16 bit mode :-( .
This is how the modules arrive configured from the factory. They are also incorrectly described as configured for 8 bit mode in most sites that carry the module.
To switch the module to 8 bit mode or serial, you will need to move the resistor from the top to the bottom position on the picture - next to the SP1 label.
-
2Step 2
The next step is to start connecting the module to Arduino. Since I will need 16 pins just for the data, and I still need to connect Reset, CS, RD and few others, I decided to use Arduino Mega. I have an Ethernet Shield installed on my Mega for other developments, and testing, so I decided to leave the shield in place for the experiment. Here is the result:
Quite a mess, but holefully will work.
-
3Step 3
To start measurement, you need to set the Convst A and Convst B to low. The 2 signals can be set at different time:
However the Maximum time T5 between the 2 signals is only 0.5 mS . This makes it impractical for individual software control, so I have connected my 2 pins together, and in Visuino will implement them as a single control pin.
-
4Step 4
Next step - creating the first version Visuino component for the AD7606 Module :
Now time to work on the code generation... -
5Step 5
Well... I seem to have the Module working in 16 bit parallel mode. Here is the new version of the component:
Will try to make a Visuino release tomorrow morning, containing the new support, and will see to post some pictures of the running module.
After that will try to configure the module for 8 bit and serial interface.
-
6Step 6
I just released a version of Visuino with the 16 bit parallel support included :-) . You can download it from the Visuino site - https://www.visuino.com/
I have also updated the Open Source Libraries repository - https://bitbucket.org/mitov/visuino-libraries
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.