im using the example code and changing it around as listed below and i wondered if instead of just having portc.6 as the input pin, i could have several input pins?? as listed below
' PicBasic Pro Code that demonstrates the use of modifiers
' with the Serin2 and Serout2 commands.
testword VAR WORD ' Define word variable
testbyte VAR BYTE ' Define byte variable
test8 VAR BYTE[8] ' Define array variable with 8 locations
pinin1 VAR PORTC.1 ' Define serial pinin1 as PORTC.1
pinin2 VAR PORTC.2 ' Define serial pinin2 as PORTC.2
pinin3 VAR PORTC.3 ' Define serial pinin3 as PORTC.3
pinin4 VAR PORTC.4 ' Define serial pinin4 as PORTC.4
pinin5 VAR PORTC.5 ' Define serial pinin5 as PORTC.5
pinin6 VAR PORTC.6 ' Define serial pinin6 as PORTC.6
pinout VAR PORTC.7 ' Define serial pinout as PORTC.7
' For these examples, assume that the following string
' is being received continuously at 2400 baud on PORTC.7:
' "X-1011Y-546Z-F7ZZ-0001"
Bookmarks