« Utilisateur:Cyprien » : différence entre les versions
(Page vide créée) |
Aucun résumé des modifications |
||
(8 versions intermédiaires par le même utilisateur non affichées) | |||
Ligne 1 : | Ligne 1 : | ||
== FTDI Basic auto-reset for LPC == | |||
[[Image:CyprienARSchemat.png|right]] | |||
LPC micro-controlers can be programmed using the standard serial line using the ISP mode. This requires to have the <code>ISP</code> pin grounded when the LPC goes out of reset. It's often done using two micro-switches you have to manually press and release in the correct order. | |||
As I am using the [https://www.sparkfun.com/products/9873 FTDI Basic module from Sparkfun] to connect to the serial line, I made this circuit to use the <code>DTR</code> modem signal to easily reset and enter ISP mode. | |||
[[Image:FTDIBasic.jpg|200x200px|center]] | |||
How does it work? | |||
* When the <code>DTR</code> signal goes up, the <code>Reset</code> is pulled down, putting the LPC into reset. At this moment C1 starts to discharge through R3, and if <code>DTR</code> is asserted long enough, the <code>ISP</code> pin is put low too. | |||
* When <code>DTR</code> is back to normal, the LPC goes out of <code>Reset</code>, and if C1 is discharged enough enters <code>ISP</code> mode. | |||
I used 2200 ohm for R3 and 47uF for C1 (which I had close), which gives a RC time of about 100ms. Note that a smaller capacitor can be used, as soon as R3 value is adapted. In my experience a 100ms <code>DTR</code> signal is enough to trigger both Reset and ISP mode, whereas a 10ms signal just triggers Reset. This is perfect! | |||
Cons: if you want to manually push the reset button, disconnect the ISP pin as it will likely be triggered. | |||
Here's a picture of the circuit soldered on a Vero Board (compact, some holes hold two pins together) and connected to the [[Products/DTPlug|DTPlug]] : | |||
[[Image:CyprienARPhoto.jpg|535x400px|center]] | |||
== Next Hack == |
Dernière version du 3 septembre 2020 à 01:49
FTDI Basic auto-reset for LPC
LPC micro-controlers can be programmed using the standard serial line using the ISP mode. This requires to have the ISP
pin grounded when the LPC goes out of reset. It's often done using two micro-switches you have to manually press and release in the correct order.
As I am using the FTDI Basic module from Sparkfun to connect to the serial line, I made this circuit to use the DTR
modem signal to easily reset and enter ISP mode.
How does it work?
- When the
DTR
signal goes up, theReset
is pulled down, putting the LPC into reset. At this moment C1 starts to discharge through R3, and ifDTR
is asserted long enough, theISP
pin is put low too. - When
DTR
is back to normal, the LPC goes out ofReset
, and if C1 is discharged enough entersISP
mode.
I used 2200 ohm for R3 and 47uF for C1 (which I had close), which gives a RC time of about 100ms. Note that a smaller capacitor can be used, as soon as R3 value is adapted. In my experience a 100ms DTR
signal is enough to trigger both Reset and ISP mode, whereas a 10ms signal just triggers Reset. This is perfect!
Cons: if you want to manually push the reset button, disconnect the ISP pin as it will likely be triggered.
Here's a picture of the circuit soldered on a Vero Board (compact, some holes hold two pins together) and connected to the DTPlug :