Skip to content

Commit

Permalink
Update comment on JTAG Disable example
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieBlakey committed Mar 6, 2018
1 parent 5bebc33 commit ff5446b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Examples/JTAG_Software_Disable/JTAG_Software_Disable.ino
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ void setup() {
// Refer to the link below for further details.
// So far it works in all tests.
// https://github.com/Atlantis-Specialist-Technologies/CAN485/issues/2

// A timed sequence must be followed in order to disable JTAG.
// The JTD bit must be written twice within 4 cycles

MCUCR = (1<<JTD);
MCUCR = (1<<JTD);
MCUCR = (1<<JTD); // Write JTD bit
MCUCR = (1<<JTD); // Write again within 4 cycles

// Set JTAG pins as outputs
pinMode(A4, OUTPUT);
Expand Down

0 comments on commit ff5446b

Please sign in to comment.