Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions device.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,23 +41,23 @@ registers:
type: U8
access: Write
maskType: PortDigitalIOS
description: Set the specified port DIO lines
description: Set the specified port DIO lines. This functionality has not yet been implemented.
PortDIOClear:
<<: *portDIO
address: 39
description: Clear the specified port DIO lines
description: Clear the specified port DIO lines. This functionality has not yet been implemented.
PortDIOToggle:
<<: *portDIO
address: 40
description: Toggle the specified port DIO lines
description: Toggle the specified port DIO lines. This functionality has not yet been implemented.
PortDIOState:
<<: *portDIO
address: 41
description: Write the state of all port DIO lines
description: Write the state of all port DIO lines. This functionality has not yet been implemented.
PortDIODirection:
<<: *portDIO
address: 42
description: Specifies which of the port DIO lines are outputs
description: Specifies which of the port DIO lines are outputs. This functionality has not yet been implemented.
PortDIOStateEvent:
<<: *portDIO
address: 43
Expand Down
2 changes: 1 addition & 1 deletion docs/articles/errors.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Also check that the ground connection is shared between the devices, as improper

**Q: How do I use the DIO pins on the poke ports as digital outputs?**

A: The **DIO** line on ports **P0**–**P2** work only as a digital input in the current firmware (v3.3), as the functionality to switch the pins from digital input to digital output has not been implemented yet.
A: The **DIO** line on ports **P0**–**P2** works only as a digital input, as the functionality to switch the pins from digital input to digital output has not been implemented yet. A **DIO** line can still follow the infrared beam or valve of a poke when it is selected as a mimic output, as described in [Mimic poke signals](mimic-poke-signals.md).

[!INCLUDE [](../includes/version-footer.md)]

Expand Down
2 changes: 1 addition & 1 deletion docs/articles/read-digital-inputs.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ The first value is the payload, listing the digital inputs that are currently ac

## Visualize port DIO events

In the current firmware (v3.3) the **DIO** line acts only as an active-low digital input. It idles high at 5 V through onboard pull-up resistors, and the connected device must actively drive it low. Changes on the **DIO** lines are broadcast in a different register, [`PortDIOStateEvent`], which can be visualized in the same way as the digital inputs:
By default, the **DIO** line acts as an active-low digital input. It idles high at 5 V through onboard pull-up resistors, and the connected device must actively drive it low. Changes on the **DIO** lines are broadcast in a different register, [`PortDIOStateEvent`], which can be visualized in the same way as the digital inputs:

:::workflow
![Visualize port DIO events](../workflows/readdigitalinputs-visualizeportdio.bonsai)
Expand Down
10 changes: 5 additions & 5 deletions firmware/Behavior/app_ios_and_regs.h
Original file line number Diff line number Diff line change
Expand Up @@ -227,11 +227,11 @@ typedef struct
#define ADD_REG_OUTPUT_CLEAR 35 // U16 Clear the specified digital output lines
#define ADD_REG_OUTPUT_TOGGLE 36 // U16 Toggle the specified digital output lines
#define ADD_REG_OUTPUT_STATE 37 // U16 Write the state of all digital output lines
#define ADD_REG_PORT_DIO_SET 38 // U8 Set the specified port DIO lines
#define ADD_REG_PORT_DIO_CLEAR 39 // U8 Clear the specified port DIO lines
#define ADD_REG_PORT_DIO_TOGGLE 40 // U8 Toggle the specified port DIO lines
#define ADD_REG_PORT_DIO_STATE 41 // U8 Write the state of all port DIO lines
#define ADD_REG_PORT_DIO_DIRECTION 42 // U8 Specifies which of the port DIO lines are outputs
#define ADD_REG_PORT_DIO_SET 38 // U8 Set the specified port DIO lines. This functionality has not yet been implemented.
#define ADD_REG_PORT_DIO_CLEAR 39 // U8 Clear the specified port DIO lines. This functionality has not yet been implemented.
#define ADD_REG_PORT_DIO_TOGGLE 40 // U8 Toggle the specified port DIO lines. This functionality has not yet been implemented.
#define ADD_REG_PORT_DIO_STATE 41 // U8 Write the state of all port DIO lines. This functionality has not yet been implemented.
#define ADD_REG_PORT_DIO_DIRECTION 42 // U8 Specifies which of the port DIO lines are outputs. This functionality has not yet been implemented.
#define ADD_REG_PORT_DIO_STATE_EVENT 43 // U8 Specifies the state of the port DIO lines on a line change
#define ADD_REG_ANALOG_DATA 44 // I16 Voltage at the ADC input and encoder value on Port 2
#define ADD_REG_OUTPUT_PULSE_ENABLE 45 // U16 Enables the pulse function for the specified output lines
Expand Down
Loading
Loading