How do I lower the clock frequency of a PIC18F2550 and recalculate the peripheral dividers?
I'm trying to make it run cooler. Currently, it runs at 12MIPs/48mhz (USB-CDC-ACM).
|
feedback
|
|
If you're currently running at 48 MHz, you're using an external crystal. You can decrease the frequency by changing bits 2:0 in the PLLDIV register, but we'd need to know the external crystal frequency and what peripherals you want to adjust. Is it just the USB subsystem you need to use? In response to your comment: Looks like you can get it down to 5 MHz with no hardware changes. Take a look at Table 2-3 the datasheet. Switch clock mode to disable the PLL and set CPUDIV1:0 to 11 and you'll get a 4x divider down to 5 MHZ. | ||||
feedback
|
|
Depending on your application, you may want to try putting the PIC to sleep and using an interrupt with an RC circuit to wake it up periodically. | |||
feedback
|
|
That's a weird place to have the board get hot. It could definitely be warm at the other end, near R4, T1, and the TX LED, but there's nothing happening on the end which you say is warm! (Schematic, layout) According to the datasheet (p. 363), the power dissipated in your PIC should be: Pdis = VDD x {IDD – Σ IOH} + Σ {(VDD – VOH) x IOH} + Σ(VOL x IOL)
This uses the Three things I would look at: | |||
feedback
|