3BABY
Member level 5
- Joined
- Jan 14, 2011
- Messages
- 91
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,286
- Location
- New Zealand
- Activity points
- 2,252
Hi Guys,
so after the need for speed ive had to crank my 18F4550 up to 40Mhz.. but this is when the problems start.. i have the uC executing a test loop that sets all the LED's on PORTB for one seccond via a delay (@40Mhz).. when i have the 40Mhz crystal connected it works for a couple cycles and then for some reason some cycles are longer than others and then the uC just hangs... like it has no clock, (like if you were to pull out the osc midway through a program) please see the below shot - disregard the names on the left, just look at channel 3 orange.. however when i run exactly the same program on the same uC not reflashed or anything ..with a 20Mhz osc there is no problem .. the uC does not hang.. (again please see below pic)..
this is all on a Mikroeletronika Easy PIC6 board.. it has 22pF caps connected to the osc.. could this be the problem? do i need to change the cap values?
any help would be much appreciated!!
**broken link removed**
**broken link removed**
so after the need for speed ive had to crank my 18F4550 up to 40Mhz.. but this is when the problems start.. i have the uC executing a test loop that sets all the LED's on PORTB for one seccond via a delay (@40Mhz).. when i have the 40Mhz crystal connected it works for a couple cycles and then for some reason some cycles are longer than others and then the uC just hangs... like it has no clock, (like if you were to pull out the osc midway through a program) please see the below shot - disregard the names on the left, just look at channel 3 orange.. however when i run exactly the same program on the same uC not reflashed or anything ..with a 20Mhz osc there is no problem .. the uC does not hang.. (again please see below pic)..
this is all on a Mikroeletronika Easy PIC6 board.. it has 22pF caps connected to the osc.. could this be the problem? do i need to change the cap values?
any help would be much appreciated!!
**broken link removed**
**broken link removed**