Skip to content

How to simulate signal for PIO? #106

@mingpepe

Description

@mingpepe

The roughly flows for my PIO application are described as below

  1. Pull data from CPU
  2. Wait expected signal <- Which I need to simulate in Typescript
  3. Write data to ISR (input shift register) and trigger DMA if FIFO is full.

Since CPU, DMA, PIO and timers all execute in single thread, it's hard to simulate the signal with expected timing.
When PIO is running and waiting for data from CPU, but meanwhile CPU is not running (the only thread is occupied by PIO).
Similar situation for PIO waiting for DMA execution.

Any idea to this problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions