Quantcast
Channel: MEL PICBASIC Forum
Viewing all articles
Browse latest Browse all 4787

OSCCON=$60 Help Please 16F628

$
0
0
Hi All

Attempting to set up a serial comms unit to control a MP3 player.

But issues with compiling this bit:-

Code:

DEFINE OSC 4        'Set oscillator in MHz
            'OSCCON = $60    '4 Megs Xtal

            TRISA=0        'Port A all outputs
            TRISB=%00001100 'Make RB3 and RB4 in-puts
            'OPTION_REG.7=0 'Enable internal pull-ups
            CMCON=7        'No Analogs

I have an external HS Crystal (4Megs) Just not understanding what needs to be here or not here to make it compile ok.
Do I need the OSCCON
Do I need the Define OSC 4

I know the issue is the red text ????

BR
Andy

Thank you for help

Viewing all articles
Browse latest Browse all 4787

Trending Articles