New User - Problem with MicroBrn and example code
Posted: Tue Sep 25, 2018 4:34 pm
Hi,
I would really appreciate it if sdomeone can help me with this problem:
I was given a block of code to try out the USB port on an 18F4550 chip which I have pasted below. It compiles with no errors or warnings but when I try to load the hex file into microbrn it produces an error. The error says
Error in Hex File - Fuse
Line 4
This is the code:
Device = 18F4550
Clock = 48
// 20Mhz crystal, 48Mhz internal (FS USB)
Config
PLLDIV = 5,
CPUDIV = OSC1_PLL2,
USBDIV = 2,
FOSC = HSPLL_HS,
VREGEN = ON
// import modules...
include "usbcdc.bas"
// wait for connection...
repeat
until Attached
// main program loop - this just simply reads a byte from a
// terminal window (for example, SerialCommunicator) and then
// echos it back...
while true
if DataAvailable then
WriteByte(ReadByte)
endif
wend}
If anyone can try this or tell me what is wrong it would be greatly appreciated.
Thanks,
John
I would really appreciate it if sdomeone can help me with this problem:
I was given a block of code to try out the USB port on an 18F4550 chip which I have pasted below. It compiles with no errors or warnings but when I try to load the hex file into microbrn it produces an error. The error says
Error in Hex File - Fuse
Line 4
This is the code:
Device = 18F4550
Clock = 48
// 20Mhz crystal, 48Mhz internal (FS USB)
Config
PLLDIV = 5,
CPUDIV = OSC1_PLL2,
USBDIV = 2,
FOSC = HSPLL_HS,
VREGEN = ON
// import modules...
include "usbcdc.bas"
// wait for connection...
repeat
until Attached
// main program loop - this just simply reads a byte from a
// terminal window (for example, SerialCommunicator) and then
// echos it back...
while true
if DataAvailable then
WriteByte(ReadByte)
endif
wend}
If anyone can try this or tell me what is wrong it would be greatly appreciated.
Thanks,
John