328n PulseOut
Posted: 05 April 2012, 1:14 AM
i can't get PulseOut to work on my 328n . ( v. 3.3.5 )
If i remove the OpenCom , then the PulseOut works ...
Why is this ?
If i remove the OpenCom , then the PulseOut works ...
Why is this ?
Code: Select all
Option TargetDevice ZX328n
Dim lcd_out(1 to 150) as byte
Dim lcd_in(1 to 14) as byte
Sub Main()
Call PutPin(13, 0)
Call OpenQueue(lcd_out, 150)
Call OpenQueue(lcd_in, 14)
Call DefineCom(3, 0, 17, &H88)
Call OpenCom(3, 19200, lcd_in, lcd_out)
Call Delay(0.2)
Do
Call PulseOut(13, 0.0015, 1) ' 1.5ms
Call Delay(0.02)
Loop
End Sub