Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12626 Discussions

The Code/s Which Will Set the Internal Osc. to 4MHz for PIC16F628

Altera_Forum
Honored Contributor II
1,426 Views

Good day, 

Could you please help me with the code/s which will set the internal Osc. to 4MHz for a PIC16F628. 

 

I used the following for a external Crystal for 4MHz. 

 

Device = 16F628( pic16f628 pdf (http://www.kynix.com/uploadfiles/pdf8798/pic16f628-042fp_200619.pdf) ) 

Xtal = 4 

All_Digital = True 

 

Dim D As Word 

 

Int: TRISB = %00000000 

PORTB = 0 

D = 150 

 

Main: High PORTB.0 

DelayMS D 

Low PORTB.0 

GoTo Main 

 

Now I would like to use the internal Osc. to do the same as the external Osc. 

 

Thanks very much
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
673 Views

Hello Whatry, 

 

Your question is even more likely to get answered properly on the MICROCHIP forum. 

This forum is for INTEL/ALTERA products, MICROCHIP is another company. 

 

http://www.microchip.com/forums/ is the MICROCHIP forum. 

 

Best Regards, 

Johi.
0 Kudos
Reply