
dsPICDEM? 1.1 Plus Development Board User’s Guide
? Data Converter Interface – Interfaced to an external Si3000 voice band Codec for
transmission of DTMF PCM signals
? INTx pins – Used for detecting switch SW1-SW4 inputs
? Hierarchical/Prioritized Interrupt Control with nesting enabled
3.4
DATA AND CONTROL FLOW
3.4.1
Power-up Sequence
The power-up peripheral initialization sequence is shown in
Table 3-3.TABLE 3-3:
POWER-UP PERIPHERAL INITIALIZATION SEQUENCE
DS70099D-page 36
Seq
1
2
3
4
5
6
7
8
9
10
11
12
13
Module or Function
Timer1
Timer2
Timer3
Timer4 and Timer5
Interrupt Service
Routine (ISR)
UART2
SPI 2
Data Converter
Interface (DCI)
Si3000
DCI
External interrupt
pins INT1-INT4
12-bit ADC
Interrupts
Initialization Process
Configured to count to 125 μS, but not enabled.
Configured to count to 1 second using a 256:1 prescaler
setting.
Configured to count up to 1.14 seconds using the 256:1
prescaler setting.
Configured to operate in the 32-bit Timer mode, but not
enabled until needed.
Processing is enabled for Timer2 and Timer3.
Both the transmitter and receiver are configured for
interrupt-driven operation at 57600 baud.
Initially configured to operate in an interrupt-driven mode at
F CY /8 Hz (where F CY = 7.3728 MHz). The module communi-
cates at F CY /8 Hz in 8-bit mode while displaying results on the
LCD controller. When it is used to step the MCP41010, it
operates in the 16-bit mode at F CY /32 Hz.
Configured for Master mode. Initially configured to use two of
four buffers. Transmits/receives in time slot 1 at the frame rate
of 7200 Hz for configuring the Si3000 external voice band
Codec.
Configured for Slave mode. The Si3000 line and speaker
ports are enabled. Signal attenuation is set to 0 dB. The ADC
input from the Si3000 is attenuated by 34.5 dB and is not used
in this demo.
Re-initialized to operate with all four buffers in interrupt-driven
mode for transmitting DTMF PCM words to the Si3000 Codec.
Configured to interrupt on the falling edge and used for
switches SW1-SW4, respectively.
Configured to operate at 16000 Hz sampling rate and gener-
ate an interrupt every 16 sample-convert sequences. The
ADC samples channel AN3 (sine wave), AN4 (RP2), AN5
(RP3), AN6 (RP1) and AN8 (temperature sensor U9).
Peripheral interrupts are configured. Nested interrupts are
enabled.
? 2006 Microchip Technology Inc.