Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PWM Mode Not Producing Correct Frequency #82

Open
justacec opened this issue Aug 26, 2024 · 0 comments
Open

PWM Mode Not Producing Correct Frequency #82

justacec opened this issue Aug 26, 2024 · 0 comments

Comments

@justacec
Copy link

I just received my BP6 in the mail and have started to tinker with it. I promptly connected it to my o-scope (SDS-1104X-E) to measure the PWM outputs. Used the following terminal session to startup the PWM generator:

DIO> G
Generate frequency
Choose available pin:
 0. IO0
 1. IO1
 2. IO2
 3. IO3
 4. IO4
 5. IO5
 6. IO6
 7. IO7
 x. Exit
 > 0
Period or frequency (ns, us, ms, Hz, kHz or Mhz) > 10kHz
Frequency: 10.000kHz = 10000Hz (10.00kHz)
Period: 100000ns (100.00us)

Actual frequency: 10000Hz (10.00kHz)
Actual period: 100000ns (100.00us)

Duty cycle (%) > 50%
Duty cycle: 50.00% = 50000ns (50.00us)
Actual duty cycle: 50004ns (50.00us)
Divider: 16, Period: 12499, Duty: 6250

Generate frequency: Enabled on IO0

The result was a frequency of 12kHz as is seen in the following screen capture from my scope:

ScreenImg

Version information:

Bus Pirate 6 REV1
Firmware main branch (2024-07-27T14:08:40Z)
RP2350 with 512KB RAM, 128Mbit FLASH
S/N: 32A6968E95BBEBDC
https://BusPirate.com/
Storage:   0.10GB (FAT16 File System)

Configuration file: Not Detected
Available modes: HiZ 1-WIRE UART HDPLXUART I2C SPI 2WIRE DIO LED
Active mode: DIO
Display format: Auto
Data format: 8 bits, MSB bitorder
Pull-up resistors: OFF
Power supply: ON (3.3V/3.29V)
Current limit: OK (0.4mA/100.0mA)
Frequency generators:  
IO0: 10.000kHz, 50.00% duty cycle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant