Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

20 MHz internal oscillator

Status
Not open for further replies.

Dan East

New Member
I've been dredging through the microchip site, and unfortunately the PIC comparison charts do not include the internal oscillator speed.

I'm looking for a PIC like the PIC16F628A but with a 20 MHz internal oscillator. Is there such a thing?

Thanks.

Dan East
 
I think the highest internals is like 8MHz, well thats the highest I have seen anyway
 
I think the highest internals is like 8MHz, well thats the highest I have seen anyway
 
Dan East said:
I've been dredging through the microchip site, and unfortunately the PIC comparison charts do not include the internal oscillator speed.

I'm looking for a PIC like the PIC16F628A but with a 20 MHz internal oscillator. Is there such a thing?

Thanks.

Dan East

if im not mistaken, the PIC16F628A has a 4MHz internal oscillator. if u want to use the PIC16F628A @ 20 MHz u can use an external oscillator.
 
e said:
I think the highest internals is like 8MHz, well thats the highest I have seen anyway

Likewise, the highest I've seen is 8MHz - bear in mind this is an RC oscillator, 20MHz sounds unlikely for an RC oscillator!.

As already suggested, if you need this speed use a crystal - it will be far more accurate and stable, although you may need to move to a larger PIC to keep sufficient I/O pins.
 
Here's a related question. Using a 629 with the internal oscillator, I see communication errors occur at different voltages. For example I get proper communication at 3 V, but not at 4.5 volts (a few bit errors occur). It is obviously a timing problem. So is it to be expected that the frequency will deviate substantially at different voltages using the internal oscillator?

Dan East
 
Dan East said:
Here's a related question. Using a 629 with the internal oscillator, I see communication errors occur at different voltages. For example I get proper communication at 3 V, but not at 4.5 volts (a few bit errors occur). It is obviously a timing problem. So is it to be expected that the frequency will deviate substantially at different voltages using the internal oscillator?

It probably will, I believe the datasheet gives a number of graphs related to internal oscillator speed variations. Personally I've never had a problem though, how fast are you trying to run a serial link?, and are you using the hardware USART?.
 
9600 baud IRDa. It's just pure software - it doesn't seem the 629 has a USART. According to the datasheet, the 629 runs slower at 4.5V compared to 3.0V. Oddly enough, I have to increase my bit length from 104 uS to 110 uS to run properly at 4.5V, which is opposite of the datasheet. I should have to reduce my bit length if the PIC runs slower at the higher voltage, according to the datasheet. Weird.

Dan East
 
Just noticed that I switched PICs mid-thread on you. :) The timing problem is specifically with the 629, although I mentioned the 628 at the beginning of the thread, which is for a different project.

Dan East
 
An external Osc would be more stable and 'safe' anyway.
Does it have to be internal?

I still don't see why Microchip can't make more chips that have internal Osc's.

Kent
 
well, pretty much all the popular smaller chips have a internal oscillator. And the bigger ones have enough pins to spare to add a crystal.
 
conundrum

I should have to reduce my bit length if the PIC runs slower at the higher voltage, according to the datasheet.
There must be other variables affected by supply voltage besides the internal oscillator frequency. The Freq/Vdd timing chart for the '629 shows the typical osc. frequency varying from 4Mhz @ 3V to ~ 3.98Mhz @ 4.5V. Taken alone, this would increase the bit length to about 104.5 uS, not enough to account for the variation you're seeing.

Propagation delays decrease with increasing supply voltage (datasheet shows 10-40 nS range for the outputs) but not nearly enough for a difference of several microseconds. Maybe there's another factor we're missing. I'm stumped!
 
I placed a 1k resistor on vDD and that solved the problem. The frequency is stable from 2.8 to 6 V - at least stable enough so there is no communication errors.

Dan East
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top