PSoC™ 4 Forum Discussions
An attempt has been made to implement an Incremental ADC on PSoC4, based on the Topology No. 3 provided by Dave Van Ess in the below article in EE Times:
http://electronicdesign.com/analog/my-favorite-modulator-only-needs-leftover-components
Attached is the PSoC Creator project demonstrating this. Though a 16-bit result is generated, the ADC result is reduced to 12-bit and displayed to reduce noise.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
Steps to test this project on a PSoC4 Pioneer Kit (CY8CKIT-042):
1) Build this project and program it into the Pioneer kit.
2) As shown in the scehmatic, make the following connections to complete the Delta Sigma modulator: (a) Connect an external 100K resistor between P0[7] and P0[4]. (b) Connect a 0.1 nF capacitor between P0[4] and ground.
3) Connect an Analog Input to P0[5].
4) Connect P4[1](on J3) of PSoC4 to P12[6] of PSoC5LP(J8). This connection is for sending ADC result using PSoC4 UART through PSoC5LP(which acts as USBUART bridge) to PC.
5) Connect USBmini cable betwee the Pioneer kit and PC.
6) Open a terminal application on PC(such as Hyperterminal/Teraterm etc). In the terminal application, select the port corresponding to the name "KitProg USB-UART". Set Baud Rate = 115200, Data = 8 bit, Parity = None, Stop Bit =1, Flow Control = None.
7) Vary the Analog input between 0 - Vdd, and observe the 12-bit result on the terminal application
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
Though 4 UDBs have been used in this project, it can be reduced to just 1 UDB/TCPWM block if the PWM is replaced using the clock dividers available in PSoC4 and just an 8-bit counter is used(the MSB 8-bits of the counter can be implemented as a firmware byte which is incremented on the 8-bit counter's interrupts).
Thanks & Regards,
Prem Sai
PSoC4a will be coming in 28pin SSOP!
Will it be available in 28pin dip to upgrade my DIP CY8C29466 designs?
How to enable PSoC4 in Creator 2.2?
Show LessFor PSoC 4, we do not have a Vref Component. So you cannot directly connect any internal voltage as a comparator input. But an internal IDAC is available. This can be routed to LPCOMP via AMUXBUS. For this IDAC has to be connected to a pin with a resistor to ground. (IDAC connected to AMUXBUS, AMUXBUS connected to LPCOMP).
Show LessA very interesting feature for PSOC4, just wondering what application could be used beside the UART that's being mentioned.
http://www.cypress.com/?rID=81383
Show LessUnlike the LEDs present in CY8CKIT-030 and CY8CKIT-050, in PSoC 4 Pioneer kit , 'zero' has to be written to the LED pins inorder to turn on the LED. In Pioneer kit the positive terminal of the LEDs are connected to ground and the negative terminal is going to the respective pins.
Show LessHi All,
For your information, the Die Temperature component's API in PSoC4 (DieTemp_CountsTo_Celsius()) might return incorrect value in few of our devices. This problem has been rectified in the devices which are currently in production.
If you too experience the same problem, you do have a work-around, where you need to change the statement "offsetReg = (int16)DieTemp_SAR_TEMP_OFFSET_REG; " in DieTemp.c file to "offsetReg=0x65B4;".
Regards,
Asha
Show Less