| Electronic Components Datasheet Search |
|
AN1775 Datasheet(PDF) 9 Page - Freescale Semiconductor, Inc |
|
|
|||||||||||||||||||||||||||||
AN1775 Datasheet(HTML) 9 Page - Freescale Semiconductor, Inc |
|
9 / 12 page ![]() Application Note A Brief Example with the MC68HC705P6A MCU AN1775 Rev. 1 A Brief Example with the MC68HC705P6A MCU The small code segment example that follows illustrates the software implementation of this method of keypress arbitration. The example was defined around the spreadsheet analysis example shown in Table 1. The MC68HC705P6A (P6A) MCU features a 4-channel, 8-bit A/D converter. The P6A ADC uses continuous conversion, making a new value available every 32 internal clock cycles after being turned on. The software example assumes a resistor ladder is connected to AD0 (A/D channel 0, port C, pin 6). The software is not intended to be a complete application. This software starts the ADC, selects channel 0 for A/D conversions, then polls the ADC data register to determine if a key was pressed. The software uses a lookup table, with predefined maximum and minimum ADC values which represent a specific segment in the divider being grounded. Once the key has been arbitrated, the RAM variable InKey will tell an application which key was switched most recently. Freescale Semiconductor, Inc. For More Information On This Product, Go to: www.freescale.com |
|
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |