1
'''A demonstration program for GCGB and GCB.
2
'''--------------------------------------------------------------------------------------------------------------------------------
3
'''Attach a servo motor to PORTB.0 - this program will make it sweep back and forth
4
''': Connect the potentiometer to AN0.
5
''': The position of the servo motor will be respresentive to the position of the potentiometer.
6
'''@author EvanV plus works of ChuckH
10
'''********************************************************************************
15
; ----- Define Hardware settings
16
' No hardware configuration is required as outputs and inputs are set automatically within the methods used.
19
' No Constants specified in this example.
22
' No Variables specified in this example. All byte variables are defined upon use.
25
; ----- Main body of program commences here.
39
pulseout PORTB.0 ,count 10us