Download µChameleon 2 User`s Manual
Transcript
µChameleon 2 1.14.2. 1.14.3. 1.15. User’s Manual Measuring a single pulse length ....................................................................... 18 Changing edge sensitivity ................................................................................ 18 SPI – Serial Peripheral Interface........................................................ 19 1.15.1. 1.15.2. 1.15.3. 1.15.4. 1.15.5. 1.15.6. 1.15.7. 1.15.8. 1.16. Introduction ...................................................................................................... 19 Turning the SPI on and off............................................................................... 19 Setting clock rate.............................................................................................. 19 Setting clock phase and polarity....................................................................... 20 Sending data ..................................................................................................... 20 Receiving data .................................................................................................. 20 Setting the dummy byte.................................................................................... 21 Full-duplex transmit – receive.......................................................................... 21 UART Support ................................................................................... 22 1.16.1. 1.16.2. 1.16.3. 1.16.4. 1.16.5. 1.17. Introduction ...................................................................................................... 22 Initialisation...................................................................................................... 22 Sending data ..................................................................................................... 22 Receiving data .................................................................................................. 23 Asynchronous Notification .............................................................................. 23 Variables and arithmetic .................................................................... 24 1.17.1. 1.17.2. 1.17.3. 1.17.4. 1.17.5. 1.17.6. 1.18. Dim................................................................................................................... 24 Let..................................................................................................................... 24 Increment and decrement ................................................................................. 25 Print .................................................................................................................. 25 The ‘?’ special variable .................................................................................... 25 Erasing variables .............................................................................................. 25 Conditional execution ........................................................................ 26 1.18.1. 1.19. If … then and relational operators.................................................................... 26 Event handlers.................................................................................... 27 1.19.1. 1.19.2. 1.19.3. 1.19.4. 1.19.5. Introduction ...................................................................................................... 27 The reset event ................................................................................................. 27 The background event ...................................................................................... 27 Background event clock source........................................................................ 27 Defining event handlers ................................................................................... 28 2. Hardware Information ...................................................................29 2.1. 2.2. Inputs / Outputs ..................................................................................... 29 Power supply circuitry........................................................................... 29 2.2.1. 2.2.2. 2.2.3. 2.2.4. Power circuitry overview ................................................................................. 29 Power circuitry protections .............................................................................. 29 Using an external wall-mount transformer....................................................... 30 Thermal considerations .................................................................................... 30 Copyright © 2006-2011 Starting Point Systems. - Page 3 - firmware rev 4.0