From 51dfeff10dbf3be808a58e4fb2d9687b080f8f5f Mon Sep 17 00:00:00 2001 From: EmbeddedMan Date: Fri, 4 Jun 2021 21:01:27 -0500 Subject: [PATCH 1/2] Added text to Initial I/O pin configuration section of EBB command documentation describing Port B pins and if they are 5V tolerant or not. --- docs/ebb.html | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/docs/ebb.html b/docs/ebb.html index a344fa8..ddb06d8 100644 --- a/docs/ebb.html +++ b/docs/ebb.html @@ -2677,6 +2677,17 @@ ul.no_bullets { and defaults to an off state at reset; see the SR command.

+

Pins B1, B0, B2 and B3 are not 5-volt tolerant and any voltage above about 3.6V will damage them. + Pins B4, B5, B6 and B7 are 5-volt tolerant and will not be damaged by voltages up to 6.0V. +

+ +

Because all Port B pins (B0 through B7) have weak pull up resistors, any of these pins can easily be + used to read a switch by simply connecting a switch between the Port B pin and GND. Use the + PI command to read the state of the switch. If that pin is not already + an input at boot (see table below) you can make it an input using the PD + command. +

+

In addition to the pins of PortB, additional broken-out I/O pins accessible on the EBB include: PortA: RA0,1,2,3,5, PortC: RC0,1,2,6,7, PortD: RD: 0,1,4,5,6,7, and PortE: RE0. Every pin on PortB, PortC and RA6 can source or sink up to 25mA each. All other pins can source or sink up to 4mA each. @@ -2707,54 +2718,63 @@ ul.no_bullets { Pin Default Direction Default State + 5V Tolerant? Typical application RB0 Input Weak pull up + No Alternate PRG/Pause button input; see QB RB1 Output RC Servo Pulses + No Pen lift servo output; see SC, SP RB2 Input Weak pull up + No General RB3 Output Low + No Engraver or laser PWM output control RB4 Output Low + Yes Alternate Pen Up/Down I/O (solenoid/laser) RB5 Input Weak pull up + Yes General RB6 Input Weak pull up + Yes General RB7 Input Weak pull up + Yes General From 12069c5f9516e545bd756451ab3e15946958b5c3 Mon Sep 17 00:00:00 2001 From: EmbeddedMan Date: Mon, 7 Jun 2021 19:36:31 -0500 Subject: [PATCH 2/2] Three small fixes to EBB docs based on PR #162 feedback. --- docs/ebb.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/ebb.html b/docs/ebb.html index ddb06d8..904b282 100644 --- a/docs/ebb.html +++ b/docs/ebb.html @@ -2678,11 +2678,11 @@ ul.no_bullets {

Pins B1, B0, B2 and B3 are not 5-volt tolerant and any voltage above about 3.6V will damage them. - Pins B4, B5, B6 and B7 are 5-volt tolerant and will not be damaged by voltages up to 6.0V. + Pins B4, B5, B6 and B7 are 5-volt tolerant and will not be damaged by voltages up to 5.5V.

-

Because all Port B pins (B0 through B7) have weak pull up resistors, any of these pins can easily be - used to read a switch by simply connecting a switch between the Port B pin and GND. Use the +

Because all Port B pins (B0 through B7) have weak pull up resistors, any of these pins can be + used to read a switch by connecting a switch between the Port B pin and GND. Use the PI command to read the state of the switch. If that pin is not already an input at boot (see table below) you can make it an input using the PD command. @@ -2718,7 +2718,7 @@ ul.no_bullets { Pin Default Direction Default State - 5V Tolerant? + 5V Tolerant Typical application