AN1154 STMicroelectronics, AN1154 Datasheet - Page 56

no-image

AN1154

Manufacturer Part Number
AN1154
Description
8031-PSD DESIGN TUTORIAL
Manufacturer
STMicroelectronics
Datasheet
AN1154 - APPLICATION NOTE
PGA_Din2..PGA_Din0pin 5, 6, 7;"Data bits used to program the PGA
Measured_Level3..Measured_Level0 pin istype ’reg’;"Upper 4 bits of the A/D
converter (ADC)
WSIPSD PROPERTY ’DataBus_IMC D[7:4]:Measured_Level[3:0] PortB’;
// Port C I/O
// Note that pins pc0, pc1, and pc5-6 are multiplexed output/JTAG signals. pc3,
pc4, and pc6
// are JTAG signals that are not multiplexed.
// Ensure that under "Global Configuration" with the "JTAG Configuration" tab
selected that none
// of the boxes enabling various JTAG signals on certain pins are checked because
the device
// will expect only valid JTAG signals on these pins, and no multiplexing can be
done under these
// circumstances.
// Pin pc2 (pin 18) is used for VSTBY (set in global configuration)
Intrn
Start_Convpin 19;"Start Conversion signal for the ADC/JTAG TCK
Trim
Boost
JCEn
I/O
// Port D I/O
// pd0 (pin 10) is assigned above to the ALE signal from the microcontroller.
// Any external chip selects that are generated by decoding an address should be
placed on
// Port D when possible to save as many resources as possible.
RTCcsn pin 8;"Real Time Clock (RTC) chip select/JTAG TDO
clkin pin;"Port D pin pd1 (pin 9) System clock
// Output Micro<->Cell assignments
WSIPSD PROPERTY ’DataBus_OMC D[7:4]:Desired_Level[3:0] MCELLAB’;
WSIPSD PROPERTY ’DataBus_OMC D7:begin_cycle MCELLBC’;
"**************************
**************************
mxord3
meqd
56/83
pin 17;"The gain is too high and needs to be decremented/JTAG TSTAT
pin 11;"JTAG chip enable signal used to demultiplex Port C output and JTAG
pin 20;"Interrupt the MCU when the gain needs to be changed/JTAG TMS
pin 14;"There is not enough gain--increment it/JTAG TERRn
node;"True when the measured signal equals the desired signal level
node;"This signal is needed to save product terms
"Implemented with MCU I/O mode
Internal node declarations

Related parts for AN1154