Together with Andy we got it working.
With the attached DAT-file, and the two pictures from the datasheet.
[code:1:b3067dee95]$crystal = 24500000
$regfile = "8051F930.DAT"
OSCICN = OSCICN OR &H80 'Enable the precision internal osc.
RSTSRC = &H06 'Enable missing clock detector and leave VDD Monitor enabled.
CLKSEL = &H00 'Select precision internal osc & divided by 1 as the system clock
PCA0MD = &B00000000
P2MDOUT = &H00
XBR2 = &H40
do
WAITMS 200
P2 = &B11110100
WAITMS 200
P2 = &B11111111
loop
End
[/code:1:b3067dee95]
↧