Electronic Components Datasheet Search
  English  ▼

X  

AN1775 Datasheet(PDF) 9 Page - Freescale Semiconductor, Inc

Part # AN1775
Description  Expanding Digital Input with an A/D Converter
PDF  12 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  FREESCALE [Freescale Semiconductor, Inc]
Direct Link  http://www.freescale.com
Logo FREESCALE - Freescale Semiconductor, Inc

AN1775 Datasheet(HTML) 9 Page - Freescale Semiconductor, Inc

Back Button AN1775 Datasheet HTML 4Page - Freescale Semiconductor, Inc AN1775 Datasheet HTML 5Page - Freescale Semiconductor, Inc AN1775 Datasheet HTML 6Page - Freescale Semiconductor, Inc AN1775 Datasheet HTML 7Page - Freescale Semiconductor, Inc AN1775 Datasheet HTML 8Page - Freescale Semiconductor, Inc AN1775 Datasheet HTML 9Page - Freescale Semiconductor, Inc AN1775 Datasheet HTML 10Page - Freescale Semiconductor, Inc AN1775 Datasheet HTML 11Page - Freescale Semiconductor, Inc AN1775 Datasheet HTML 12Page - Freescale Semiconductor, Inc  
Zoom Inzoom in Zoom Outzoom out
 9 / 12 page
background image
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



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12


Datasheet Download

Go To PDF Page


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


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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