Subject:
|
Re: Digital Outputs, Multi-tasking
|
Newsgroups:
|
lugnet.robotics.handyboard
|
Date:
|
Wed, 5 Jan 2000 03:02:48 GMT
|
Viewed:
|
1047 times
|
| |
| |
> Does anyone i can get another digital output and how to control its output
> signal?
not me.
> 2. i'm using the June 1998 version of Lib_Hb.c. i was looking through it and
> could not find any multi-tasking functions except for:
>
> void hog_processor()
> {
> poke(0x0a, 0);
> }
>
>
> in the tech manual there is a function called 'start_process( , , )' but it
> isn't in the .c file. how do get my program to do multitasking?
the rest of the functions are implemented in assembly by the pcode
interpreter, therfore they wont have an entry in lib_hb.c. To use them, just
call them as documented in the manual.
>
> 3. under the System Interrupt Control section of the same library file, the
> comments said we can turn on and off various interrupt routines. it only give s
> functions for the PWM and Print screen functions. where can i get the other
> functions such as IR Decoding, quad shaft encoding?
If you look at the functions for enabling/disabling these items in lib_hb.c,
you'll see that they simply toggle a bit in memory. There is a byte (or
possibly a 16bit int) that is used to define what is active. If you grab the
pcode source, you can find the meaning of each bit and modify lib_hb.c to
have the additional functions.
--chris
|
|
Message is in Reply To:
| | Digital Outputs, Multi-tasking
|
| 1. On the Handyboard website, there are 2 drivers which make ports 5 and 7 digital output ports. I have used one of them to control a servo. I need another one to be connected to a SN754410NE so that i have a PWM output for a DC motor. Does anyone i (...) (25 years ago, 4-Jan-00, to lugnet.robotics.handyboard)
|
2 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|