单缓冲方式MOVDPTR,#7FFFHMOVA,#dataMOVX@DPTR,ADAC0832与单片机的接口80C51P2.7P0WRCSXFERWR1WR2ILEVCC+5V-+RfbVODAC0832IOUT1IOUT21kΩ1MΩDI0DI7DGNDVSS1/4LM324VREF-5V双缓冲方式MOVDPTR,#0DFFFHMOVA,#data1MOVX@DPTR,AMOVDPTR,#0BFFFHMOVA,#data2MOVX@DPTR,AMOVDPTR,#7FFFHMOVX@DPTR,A80C51P2.7P0WRCSXFERWR1WR2ILEVCCDAC0832(1)DI0DI7CSXFERWR1WR2ILEVCC+5VDAC0832(2)DI0DI7P2.6P2.5直通方式ILE接+5V,CS、WR1、WR2、XFER均接地。【例9-1】如图所示。试编写程序段,实现产生三角波。已知三角波的最低值和最高值分别为WL和WH。80C51P2.7P0WRCSXFERWR1WR2ILEVCC+5V-+RfbVODAC0832IOUT1IOUT21kΩ1MΩDI0DI7DGNDVSS1/4LM324VREF-5VMOVDPTR,#7FFFHMOVR7,#WLUP:INCR7MOVA,R7MOVX@DPTR,ACJNER7,#WH,UPDOWN:DECR7MOVA,R7MOVX@DPTR,ACJNER7,#WL,DOWNJMPUPADC0809与单片机接口EOCADC0809D0~D774LS373OEGALE80C51D7::D0Q7::Q0P3.3EAP0ABCCKQDQ1≥1≥1STARTALEOECLKWRP2.7RDIN0IN7CKQDQ查询方式中断方式