Forum

Please consider registering
guest

Log In Register

Register | Lost password?
Advanced Search

— Forum Scope —

  

— Match —

   

— Forum Options —

   

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Are the PWM pins a hardware feature or software kernel feature?
2020 年 05 月 28 日
21:17:20
jejump
Moderator
Forum Posts: 14
Member Since:
2015 年 02 月 22 日
Offline

I've looked through the datasheet of the EX and can only find one mention of PWM. I'm using an 86 ONE without Arduino libs and so the question comes--Is the 32-bit 11-pin PWM lines something generated by the OS? If it's hardware registers that reside natively on the SoC, where in the datasheet is that discussed?

Thanks,
John

2020 年 06 月 10 日
17:33:16
Android_Lin
Moderator
Forum Posts: 228
Member Since:
2014 年 04 月 01 日
Offline

Hi, jejump,

The PWM on 86Duino is Hardware function, if want to use PWM under DOS, there is a example(including source code)here: https://drive.google.com/file/d/1l-M5OwDxIW4RWogrB3DiTNL-M5UkRQlf/view?usp=sharing
In example, only PWM code(no GPIO, no IRQ), run it under DOS on 86Duino, we will get 30% duty on GPIO port2 pin1(same as ~9), if want to get pin mapping betrween GPIO and PWM, see this file: https://drive.google.com/file/d/1V2N-H_UPgOFR6UhIClNPc_A2ikMwuGSk/view?usp=sharing
About the operation of PWM registers, in example, we can refer mcm.cpp/io.cpp. hope to help you.

Android_Lin

Forum Timezone: Asia/Taipei

Most Users Ever Online: 229

Currently Online:
2 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Dinosaur: 27

leutenecker: 13

mrZagg: 10

hippy: 9

smeezekitty: 8

lukeross: 8

tomka: 8

Ekkehard: 8

UIdahoCIT: 8

blaxxun: 7

Member Stats:

Guest Posters: 0

Members: 1568

Moderators: 15

Admins: 5

Forum Stats:

Groups: 2

Forums: 11

Topics: 248

Posts: 1114

Newest Members: Alfredhak, Davidherie, Nelsonbok, EugeneDut, RobertOwell, LamboSr, petershu, f0rkB0mb, Albert, david

Moderators: Glaux: 70, uaa: 11, guigra: 17, asian55: 22, Android_Lin: 228, bcarroll: 12, cucubutter: 84, recycled-air: 12, stevemork: 16, zerozaber: 52, pongraczi: 26, jejump: 14, George Andrews III: 56, poto: 11, garpastym: 20

Administrators: eveshih: 1, anthony: 31, viky6: 0, roboard: 135, hcl: 1