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
Protected mode or real mode and pwm frequency?
2015 年 01 月 09 日
06:29:24
smeezekitty
New Member
Forum Posts: 8
Member Since:
2013 年 12 月 24 日
Offline

I have two questions.

First: Does the processor run in real mode or protected mode when using the IDE
to program it?

Second:

I have been using the timer1 library to change PWM frequency.
The way I understand it is the pwm frequency is 1000000/period.
Is that right? Also does changing the timer affect delayMicroseconds()

-edit-
I am using the 86duino zero

2015 年 01 月 09 日
21:16:38
Android_Lin
Moderator
Forum Posts: 228
Member Since:
2014 年 04 月 01 日
Offline

Hello, smeezekitty,
First, the 86Duino program is compiled by DJGPP in IDE and the program works in protected mode through the DPMI server on 86Duino board. When using IDE to program 86Duino, IDE first reset 86Duino to run the bootloader and then transmit a new program to it. When the bootloader is receiving new program from IDE, 86Duino processor works in protected mode.

Second, that is right, and it doesn't affect delayMicroseconds() if adjust the timer.

2015 年 01 月 10 日
07:26:45
smeezekitty
New Member
Forum Posts: 8
Member Since:
2013 年 12 月 24 日
Offline

Android_Lin said

Hello, smeezekitty,
First, the 86Duino program is compiled by DJGPP in IDE and the program works in protected mode through the DPMI server on 86Duino board. When using IDE to program 86Duino, IDE first reset 86Duino to run the bootloader and then transmit a new program to it. When the bootloader is receiving new program from IDE, 86Duino processor works in protected mode.

Second, that is right, and it doesn't affect delayMicroseconds() if adjust the timer.

Thank you for the response. Sounds good.

Does that mean I can allocate a relatively large chunk of memory such as 8MB?

2015 年 01 月 10 日
08:21:01
Glaux
Moderator
Forum Posts: 70
Member Since:
2013 年 10 月 11 日
Offline

Yes, and probably much more. Just use standard malloc().

Forum Timezone: Asia/Taipei

Most Users Ever Online: 229

Currently Online:
3 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