I've just a couple of observations from a quick glance at it:
The ICSP header has an unconventional pinout and reset should have an external pullup
Use Schottky diodes instead of the 1n4148 (lower voltage drop) for power supply contention prevention.
Q1 will conduct, irrespective of the voltage on its gate, through the body diode.
6v6gt:
I've just a couple of observations from a quick glance at it:
The ICSP header has an unconventional pinout and reset should have an external pullup
Use Schottky diodes instead of the 1n4148 (lower voltage drop) for power supply contention prevention.
Q1 will conduct, irrespective of the voltage on its gate, through the body diode.
I know for the unconventional, it is wanted !
I added a 10K resistor between VCC (5V) and PC6 (Reset pin)
I can use MBR0520LT1G instead of 1N4148 ?
TomGeorge:
Hi,
Have you built and tried your circuit?
Why do you ICSP when you have a FT232 with USB connected to the 328?
Why no bootloader?
Tom...
Yes and no... Yes because I have already made a PCB with the rooting of the components (RS232, CAN, ...) and everything works fine. But I have not yet realized the powersupply part ... So no I have not tested the power supply .
Because to program the card for the first time, it must be done with a programmer and therefore by ICSP.
And secondly, I have already made the card, and despite having put a bootloader, 9 times out of 10 I cannot put a program via USB and the FT232RL chip
kealmlj:
And secondly, I have already made the card, and despite having put a bootloader, 9 times out of 10 I cannot put a program via USB and the FT232RL chip
So you have made some really big mistake then.
Offhand, I don't know what it is , but that is what you are describing.
Looks like you copied the Arduino UNO circuit for supply switching, problem is, with MOSFET ON, VUSB will be passed, if the 5V from the regulator is higher than VUSB, current will flow backward into the VUSB source, with MOSFET OFF, VUSB will be passed through the body diode dropping 0.6V.