A non-standard dialect of C that provides extensions for real-time multitasking (costates, cofunctions, function chaining and slice statements), provided by Digi International for Rabbit microprocessors.
Questions tagged [dynamic-c]
13 questions
7
votes
4 answers
Manually cast signed char
I'm working with some embedded hardware, a Rabbit SBC, which uses Dynamic C 9.
I'm using the microcontroller to read information from a digital compass sensor using one of its serial ports.
The sensor sends values to the microcontroller using a…

Sean Taylor
- 4,948
- 8
- 25
- 27
3
votes
8 answers
C - Convert Integer to Binary Array
I am very new to the C language.
I will need a small program to convert int to binary and the binary preferably stored in an array so that I can further break them apart for decoding purpose.
I have following:
#include
#include…

Fei Hap Lee
- 201
- 1
- 7
- 17
2
votes
1 answer
How to integrate DynamicC compiler(Rabbit Microcontroller/C ) with the Eclipse IDE
I would like to integrate the Dynamic C compiler which is compiler for the RABBIT microcontroller into the Eclipse IDE. I really like eclipse environment and its features.
Is there any method I can use to integrate such external compiler into the…

Zandubalm123
- 21
- 2
1
vote
1 answer
AES Encryption/Decryption - Dynamic C to C#
I am using the Dynamic C programming language on a Rabbit microprocessor. I believe Dynamic C is based on ANSI-C89 with some very slight changes. They have an AES encryption library which I am trying to use to encrypt data before I send it to my…

Ryan Foley
- 193
- 4
- 11
1
vote
4 answers
How do you return a string from a function correctly in Dynamic C?
I have a program I am trying to debug, but Dynamic C apparently treats strings differently than normal C does (well, character arrays, anyway). I have a function that I made to make an 8 character long (well, 10 to include the \0 ) string of 0s and…

aquanar
- 1,531
- 2
- 11
- 8
1
vote
0 answers
for temperature and humidity sensor coding has errors
This is my code below. Ive tried to identify the errors. For eg: They asked me to put a colon on a line and although I did, the same error occurred. These are my codes, I know it is a little hard to identify the errors but if anyone understands this…

user3462252
- 11
- 1
0
votes
3 answers
Convert integer to character and vice versa
How to convert integer to char and vice versa in "Dynamic C".
Use VB.NET as bellow:
Dim i As Integer
Dim c As Char
' Integer to Character
i = 302
c = ChrW(302)
Debug.Print(c) 'Result: Į
' Character to Integer
Dim j As Integer
j =…

Javanese Girl
- 337
- 2
- 6
- 14
0
votes
1 answer
Error using jr cc, label (value out of range)
*Error: value xxx is out of range, valid values are between -128 and 127.
I've been having this error in all my code.
The instruction jr cc, label explains this:
Note that the relative jump has a limited range of [-128, 127] from
the address…

Albert
- 1
0
votes
2 answers
Save Data using Dynamic C
I am using Rabbit single board computer. I would like to save the data I/O which is connected to another Rabbit single board computer through a wireless connection. Is it able to save the data inside the PC in a .txt file for example?

Austin
- 1
0
votes
1 answer
Reading from a text file in Dynamic C language
I'm using a rabbit microcontroller. It uses the Dyanimc C language.
How can I read from a file in my PC and manipulate it or print it to the screen?
C or C++ methods are not working here.

Morano88
- 2,047
- 4
- 25
- 44
0
votes
1 answer
Dynamic C (Teso PC1620-PLC) controling LDC
I'm new to programming in any form of C.
I have a PLC (Teso PC1620) (using a rabbit processor) with an LCD screen (matrix orbital LK204-7T-1U-USB-WB).
I'm trying to use the build in horizontal bar/graph function of the LCD.
The code below works but…

CookieB
- 3
- 2
0
votes
1 answer
Unable to compile BACnet code
I'm trying to run some BACnet code on the Rabbit Processor and it is throwing the following errors:
line 200 : ERROR BACNET.LIB : 'STDINT.H' cannot be found.
line 201 : ERROR BACNET.LIB : 'CONFIG.H' cannot be found. …

Retry
- 159
- 1
- 3
- 9
-1
votes
1 answer
Dynamic C - Error when using writeUserBlockArray()
Edit - here are some resources in response to comments:
costate: http://bamafolks.com/randy/students/embedded/dynamicC_mtask.html
writeUserBlockArray: http://ftp1.digi.com/support/documentation/html/DynCFunctionReference/12fun595.htm#1259708
The…

bobble14988
- 1,749
- 5
- 26
- 38