I'm working on a project with PIC18F45Q43's 44 pin TQFP package. The PCB I designed had a power supply based on the 7805, but when I power the circuit; the PIC18F45Q43 burns out. I even tried powering with 3.3 V but it still burns out.
Surprisingly, when I power the 40 pin DIP package with the 7805; the circuit works completely fine.
What can be the cause of this? And what is the ideal power supply for the pic microcontrollers, especially the SMD packages?
Also, what is the best way to create 5 V and 3.3 V outputs for components in the same circuit using single input power source?