Part Number: TMS320F28031
Other Parts Discussed in Thread: TEST2
Hi Champs,
My customer wants to use AIO as GPIO to detect the digital inputs. There are 8 switches on DIP switch, and 6 AIOs are connected to DIP switch as follows. And 1 switch is connected to GPIO, and DIP8 is connect to ADCINB0, which use ADC sampling to detect the switch on or off.
| DIP1 | AIO6 |
| DIP2 | AIO4 |
| DIP3 | AIO2 |
| DIP4 | AIO10 |
| DIP5 | AIO12 |
| DIP6 | AIO14 |
| DIP7 | GPIO29 |
| DIP8 | ADCINB0 |
In their design, if switch is turned to ON, AIO will be connected to ground directly. And if switch is turned off, AIO will be pulled to Vcc using 3.3K resistor. If more than 3 AIO are connected to ground, ADC will hang and the content of ADC result registers are 0x0FFF. If turning 1 AIO to ground, ADC will be recovered, but ADC result were abnormal.
Would you kindly help to explain the root cause of ADC hanging, and also would you suggest how to revise this circuit from silicon aspect?
Thanks a lot.
BR,
Young












