Bonjour à toute la communauté. Y aurait-il des personnes qui seraient intéressées pour participer à l'aventure du projet de développement d'un package, basé sur SDCC ? Il permet d'utiliser l'IDE Arduino (sans modification de celle-ci) pour compiler des programmes et programmer les micro-contrôleurs de la famille 8051 (89C5x). Bien qu'en C, le but est de rester le plus compatible avec les fonctions Arduino de base, pour faciliter le portage. Il existe déjà toute la base du projet en version Beta (sous licence GPL), qui fonctionne sous MacOS et sous WinOz. Il ne manque qu'à le compléter de quelques fonctions et à l'optimiser. Ardui89 Arduino IDE STC 89C51 89C52 8051 download | SourceForge.net Bien cordialement à tous et peut-être à bientôt.
Please post in English in the English section of the forum; else please post in the French section of the forum.
I've left it in Microcontrollers instead of moving it as it might have more chance to get the attention of those that might be interested.
Google translate:
Hello to all the community. Would there be people who would be interested in participating in the adventure of the package development project, based on SDCC? It allows you to use the Arduino IDE (without modification) to compile programs and program 8051 family microcontrollers (89C5x). Although in C, the goal is to remain as compatible as possible with basic Arduino functions, to facilitate porting. The entire base of the project already exists in Beta version (under GPL license), which works under MacOS and WinOz. All you need to do is complete it with a few functions and optimize it. Ardui89 Arduino IDE STC 89C51 89C52 8051 download | SourceForge.net Best regards to all and perhaps see you soon.
Sorry ! And many thanks and for your kindness.
I thought about this approach for 8085, Z80 and 68000 micros, but couldn't get my head around the issue of library files written for C++ when the compilers I had didn't support C++.
I currently use ch55xduino for ch552 which is 8051 and used sdcc. Naturally no C++, but the ported libraries just replace the "." with "_". How is it done here?
Hello, Ardui89 fully uses the Arduino IDE interface. But in C of course. This does not detract from performance. The library is written to get as close as possible to Arduino functions. digitalWrite for example is the same with ATMega328 as with 89C52. The pinout is respected and very close. Serial.printf is also the same or tone, etc. etc.
A l'avenir, l'idée est vraiment de partager tous les codes et modules, avec un minimum de modification du code entre AVR et 8051, entre C++ et le C de SDCC. Cela fonctionne parfaitement. Il faut maintenance compléter les librairies.
In the future, the idea is really to share all codes and modules, with minimal code modification between AVR and 8051, between C++ and SDCC C. It works perfectly. It is necessary to complete the libraries.
For example: blink.ino demo :
void setup() {
pinMode(LED_BUILTIN, OUTPUT);
}
void loop() {
digitalWrite(LED_BUILTIN, HIGH);
delay(1000);
digitalWrite(LED_BUILTIN, LOW);
delay(1000);
}
works identically on Arduino UNO (ATMega328) or on STC89C51/2 with Ardui89 IDE... The LED_BUILTIN (D13) is on pin P3_5 of the 89C51/2...
See Ardui89 Arduino IDE STC 89C51 89C52 8051 download | SourceForge.net
Good evening. Cordialy.
Cyril
To complete the card use a CH340C or CH340G. The self-programming of the 89C51 or 89C52 is launched with the RTS pin. It is directly managed as for a Classic Arduino board, with the integrated programming software and from the Arduino IDE