MCP3903 ADC Evaluation Board for 16-Bit MCUs User’s Guide
DS51994A-page 12
©
2011 Microchip Technology Inc.
FIGURE 2-1:
dsPIC33 Example Flow Chart.
2.1.3
PC Software
The PC receives the data and displays it on the MCP390x Data View. The program can
display and process only two channels at the same time. To select the desired
channels, the SW4 (RD13) must be pressed.
S ta r t
In itia lis a tio n
G e t s a m p le s in to b u ffe r [5 1 2 ]
R e a d In te r n a l R e g is te r s
W a it fo r P C G U I
c o m m a n d
C o m m a n d
r e c e iv e d
C h e c k v a lid ity
C o m m a n d v a lid
W r ite in te r n a l r e g is te r s
S e n d s a m p le s fr o m B u ffe r [5 1 2 ]
S e n d in te r n a l r e g is te r s
S e n d F F T
( n o t c o m p u te d h e r e )
U p d a te c h a n n e ls s e le c tio n
Y E S
Y E S
N O
N O
Initialization