參數(shù)資料
型號: 87LPC767
廠商: NXP Semiconductors N.V.
英文描述: Low power, low price, low pin count(20 pin) microcontroller with 4 kB OTP and 8-bit A/D(帶4 kB OTP和8位A/D的低功耗,低價格,少引腳(20引腳)的微控制器)
中文描述: 低功耗,低價格,低引腳數(shù)(20針)與4 KB的檢察官辦公室和8位A / D(帶4 KB的檢察官和8位A / D轉(zhuǎn)換的低功耗,低價格,少引腳(20引微控制器腳)的微控制器)
文件頁數(shù): 14/61頁
文件大?。?/td> 296K
代理商: 87LPC767
Philips Semiconductors
Preliminary specification
87LPC767
Low power, low price, low pin count (20 pin)
microcontroller with 4 kB OTP and 8-bit A/D converter
2000 Feb 02
11
Code Examples for the A/D
The first piece of sample code shows an example of port configuration for use with the A/D. This example sets up the pins so that all four A/D
channels may be used. Port configuration for analog functions is described in the section Analog Functions.
; Set up port pins for A/D conversion, without affecting other pins.
mov
PT0AD,#78h
; Disable digital inputs on A/D input pins.
anl
P0M2,#87h
; Disable digital outputs on A/D input pins.
orl
P0M1,#78h
; Disable digital outputs on A/D input pins.
Following is an example of using the A/D with interrupts. The routine ADStart begins an A/D conversion using the A/D channel number supplied
in the accumulator. The channel number is not checked for validity. The A/D must previously have been enabled with sufficient time to allow for
stabilization.
The interrupt handler routine reads the conversion value and returns it in memory address ADResult. The interrupt should be enabled prior to
starting the conversion.
; Start A/D conversion.
ADStart:
orl
ADCON,A
setb
ADCS
;
orl
PCON,#01h
;
orl
PCON,#02h
ret
; Add in the new channel number.
; Start an A/D conversion.
; The CPU could be put into Idle mode here.
; The CPU could be put into Power Down mode here if RCCLK = 1.
; A/D interrupt handler.
ADInt:
push
ACC
mov
A,DAC0
mov
ADResult,A
clr
ADCI
anl
ADCON,#0fch
pop
ACC
reti
; Save accumulator.
; Get A/D result,
; and save it in memory.
; Clear the A/D completion flag.
; Clear the A/D channel number.
; Restore accumulator.
Following is an example of using the A/D with polling. An A/D conversion is started using the channel number supplied in the accumulator. The
channel number is not checked for validity. The A/D must previously have been enabled with sufficient time to allow for stabilization. The
conversion result is returned in the accumulator.
ADRead:
orl
setb
ADChk:
jnb
mov
clr
anl
ret
ADCON,A
ADCS
; Add in the new channel number.
; Start A/D conversion.
ADCI,ADChk
A,DAC0
ADCI
ADCON,#0fch
; Wait for ADCI to be set.
; Get A/D result.
; Clear the A/D completion flag.
; Clear the A/D channel number.
相關(guān)PDF資料
PDF描述
87LPC768 Low power, low price, low pin count(20 pin) microcontroller with 4 kB OTP and 8-bit A/D,and Pulse Width Modulator(帶4 kB OTP、8位A/D和脈寬調(diào)節(jié)的低功耗,低價格,少引腳(20引腳)的微控制器)
87LPC769 Low power, low price, low pin count(20 pin) microcontroller with 4 kB OTP and 8-bit A/D,and DAC(帶4 kB OTP、8位A/D和D/A轉(zhuǎn)換的低功耗,低價格,少引腳(20引腳)的微控制器)
87N-1000A-0C Signal Conditioner
87N-1000A-0L Signal Conditioner
87N-1000A-0P Signal Conditioner
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
87LPC768 制造商:PHILIPS 制造商全稱:NXP Semiconductors 功能描述:Low power, low price, low pin count 20 pin microcontroller with 4 kB OTP 8-bit A/D,and Pulse Width Modulator
87LPC768FN 制造商: 功能描述: 制造商:undefined 功能描述:
87LPC769 制造商:PHILIPS 制造商全稱:NXP Semiconductors 功能描述:Low power, low price, low pin count 20 pin microcontroller with 4 kB OTP 8-bit A/D, and DAC
87MCW4MD 制造商:Siemens 功能描述:
87MCW4MF 制造商:Siemens 功能描述: