Download Print this page

HOLT HI?1590 User Manual page 16

Hide thumbs Also See for HI?1590:

Advertisement

Appendix 1
 
This overview flow chart shows the demo program at a glance. 
Initialize global variables + arrays
Configure MCU SPI bus
Display console header
At reset the program initializes the variables and configures the peripherals including the SPI block, 
Timers, Interrupts and serial communication UART. The program then enters Serial Command mode, 
this is an endless loop that continuously samples the keyboard.  Once a key is pressed the  
The program enters a case function that selects which function to call.  
AN‐1590, Rev. New 
Demo software overview
Main.c Start
Initialize Peripherals
Initialize Interrupts
Initialize Timer
Configure UART
Set SPI clock rate
Display Control
Menu
Scan Keyboard
for Menu Selection
Y
Valid function
selected?
N
HOLT INTEGRATED CIRCUITS 
SPI byte write to
Y
amplitude register
Case D
and read back
previous setting
N
Y
SPI byte write to
Case A
amplitude register
N
Y
Enter Ramp
Case Y
Amplitude Loop
N
 
10/10/14 

Advertisement

loading