Overclocked
Member
Code Doesnt Work
I just Got my junebug together and the programming function works, since I used the test code from BRE. Basically, I want to press a button and have the LED Light.
Code is from Swordfish Basic. Code Complies, but the actual hardware doesnt work.
Device = 18F1320
Clock = 4 // 4MHz clock
OSCCON = $62 // select 4MHz internal clock
End //Complier gives and Error if I dont have this
Output RA.0
Output RA.6
Input RB.0
Dim RB0 As Bit //Switch 1
Dim A0 As Bit //LED A0
Dim A6 As Bit //LED A0 Control
If RB0 = 0 Then
A0 = High
A6 = Low
End
I just Got my junebug together and the programming function works, since I used the test code from BRE. Basically, I want to press a button and have the LED Light.
Code is from Swordfish Basic. Code Complies, but the actual hardware doesnt work.
Device = 18F1320
Clock = 4 // 4MHz clock
OSCCON = $62 // select 4MHz internal clock
End //Complier gives and Error if I dont have this
Output RA.0
Output RA.6
Input RB.0
Dim RB0 As Bit //Switch 1
Dim A0 As Bit //LED A0
Dim A6 As Bit //LED A0 Control
If RB0 = 0 Then
A0 = High
A6 = Low
End
Last edited: