Looking at this with more depth...
The LEDs are connected internally to port2 and the light sensitive device to ADC7.
Can these be read/ written via. the serial port or only from C51 code?
The factory program is empty. In order to facilitate the user's free use, it has not been solidified. If you want to use the peripheral functions here, the user can use the os code or use the 8051 c code to rewrite and use it selectively.
P2.7 Green LED
P2.6 Red LED
AD7 photosensitive Corresponding system variable address: 0x0032 AD0-AD7 channel instantaneous value, 1 word per channel. Voltage = AD value * 3300/4095 mV.
If you want the timely technical support,you can send email to me :jennifer@dwin.com.cn ,or add my whatsapp:+86 19192113166 ,or my wechat :+86 13924835953