-
-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
635 additions
and
347 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,35 @@ | ||
# platform-mcs51 | ||
MCS51: development platform for PlatformIO https://github.com/platformio/platform-mcs51/wiki | ||
# Intel MCS-51 (8051): development platform for [PlatformIO](http://platformio.org) | ||
[![Build Status](https://travis-ci.org/platformio/platform-intel_mcs51.svg?branch=develop)](https://travis-ci.org/platformio/platform-intel_mcs51) | ||
[![Build status](https://ci.appveyor.com/api/projects/status/0207sb475heyoaxa/branch/develop?svg=true)](https://ci.appveyor.com/project/ivankravets/platform-intel-mcs51/branch/develop) | ||
|
||
**This platform is EXPERIMENTAL, expect things to fail.** | ||
The Intel MCS-51 (commonly termed 8051) is an internally Harvard architecture, complex instruction set computer (CISC) instruction set, single chip microcontroller (µC) series developed by Intel in 1980 for use in embedded systems. | ||
|
||
# HOWTO (Setup Platform.io for MCS-51) | ||
* [Home](http://platformio.org/platforms/intel_mcs51) (home page in PlatformIO Registry) | ||
* [Documentation](http://docs.platformio.org/page/platforms/intel_mcs51.html) (advanced usage, packages, boards, frameworks, etc.) | ||
|
||
You only need one magic command: | ||
# Usage | ||
|
||
- `$ platformio platforms install https://github.com/platformio/platform-mcs51.git` | ||
1. [Install PlatformIO](http://platformio.org) | ||
2. Create PlatformIO project and configure a platform option in [platformio.ini](http://docs.platformio.org/page/projectconf.html) file: | ||
|
||
# HOWTO (Setup your MCS-51 project) | ||
## The simple way: | ||
## Stable version | ||
|
||
1. PlatformIO -> Initialize or Update PlatformIO Project | ||
2. Select Board -> Nuvoton -> n79e85x | ||
3. Choose a directory | ||
4. Process! | ||
```ini | ||
[env:stable] | ||
platform = intel_mcs51 | ||
board = ... | ||
... | ||
``` | ||
|
||
## The manual way: | ||
## Development version | ||
|
||
1. Add your project folder | ||
2. move your project into PlatformIO layout (that is, source codes in `/src`, and library files in `/lib`) | ||
3. create `platformio.ini`, and put in the following content: | ||
``` | ||
[env:n79e85x] | ||
platform = mcs51 | ||
board = n79e85x ; | ||
framework = naked | ||
```ini | ||
[env:development] | ||
platform = https://github.com/platformio/platform-intel_mcs51.git | ||
board = ... | ||
... | ||
``` | ||
|
||
## mcu support | ||
### Nuvoton | ||
* n79e85x | ||
### STC | ||
(Experimental!) | ||
* STC15F204EA (Ram: 256, Flash: 4k) | ||
* STC15W404AS (Ram: 256 + 256, Flash: 4k) | ||
* STC15W408AS (Ram: 256 + 256, Flash: 8k) | ||
# Configuration | ||
|
||
example: | ||
``` | ||
board = stc15w408as | ||
upload_protocol = stcgal | ||
upload_port = /dev/ttyUSB0 | ||
``` | ||
Please navigate to [documentation](http://docs.platformio.org/page/platforms/intel_mcs51.html). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
build: off | ||
environment: | ||
|
||
matrix: | ||
- PLATFORMIO_PROJECT_DIR: "examples/native-blink" | ||
|
||
install: | ||
- cmd: git submodule update --init --recursive | ||
- cmd: SET PATH=%PATH%;C:\Python27\Scripts | ||
- cmd: pip install -U https://github.com/platformio/platformio/archive/develop.zip | ||
- cmd: platformio platform install file://. | ||
|
||
test_script: | ||
- cmd: platformio run -d %PLATFORMIO_PROJECT_DIR% | ||
|
||
notifications: | ||
- provider: Slack | ||
incoming_webhook: | ||
secure: E9H0SU0Ju7WLDvgxsV8cs3J62T3nTTX7QkEjsczN0Sto/c9hWkVfhc5gGWUkxhlD975cokHByKGJIdwYwCewqOI+7BrcT8U+nlga4Uau7J8= | ||
on_build_success: false | ||
on_build_failure: true | ||
on_build_status_changed: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,22 @@ | ||
{ | ||
"build": { | ||
"core": "naked", | ||
"extra_flags": [ | ||
"-DN79E84X", "-DN79E8432", "-DNAKED_ARCH_MCS51", "-DNAKED_MCS51_N79E84X" | ||
], | ||
"extra_flags": "-DN79E84X -DN79E8432 -DNAKED_ARCH_MCS51 -DNAKED_MCS51_N79E84X", | ||
"f_cpu": "22118400L", | ||
"size_iram": 256, | ||
"size_xram": 256, | ||
"size_code": 4096, | ||
"size_heap": 128, | ||
"mcu": "mcs51", | ||
"mcu": "n79e8432", | ||
"cpu": "mcs51", | ||
"variant": "n79e84x" | ||
}, | ||
"frameworks": [ | ||
"naked" | ||
], | ||
"frameworks": [], | ||
"upload": { | ||
"maximum_ram_size": 512, | ||
"maximum_size": 4096 | ||
}, | ||
"name": "n79e8432", | ||
"name": "Generic N79E8432", | ||
"url": "http://www.nuvoton.com/hq/products/microcontrollers/8bit-8051-mcus/low-pin-count-8051-series/n79e8432/", | ||
"vendor": "Nuvoton" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,21 @@ | ||
{ | ||
"build": { | ||
"core": "naked", | ||
"extra_flags": "-DN79E84X -DN79E844 -DNAKED_ARCH_MCS51 -DNAKED_MCS51_N79E84X --iram-size 256 --xram-size 256 --code-size 8192 --stack-size 128", | ||
"extra_flags": "-DN79E84X -DN79E844 -DNAKED_ARCH_MCS51 -DNAKED_MCS51_N79E84X", | ||
"f_cpu": "22118400L", | ||
"size_iram": 256, | ||
"size_xram": 256, | ||
"size_code": 8192, | ||
"mcu": "mcs51", | ||
"mcu": "n79e844", | ||
"cpu": "mcs51", | ||
"variant": "n79e84x" | ||
}, | ||
"frameworks": [ | ||
"naked" | ||
], | ||
"frameworks": [], | ||
"upload": { | ||
"maximum_ram_size": 512, | ||
"maximum_size": 8192 | ||
}, | ||
"name": "n79e844", | ||
"url": "www.nuvoton.com/hq/products/microcontrollers/8bit-8051-mcus/low-pin-count-8051-series/n79e844/", | ||
"name": "Generic N79E844", | ||
"url": "http://www.nuvoton.com/hq/products/microcontrollers/8bit-8051-mcus/low-pin-count-8051-series/n79e844/", | ||
"vendor": "Nuvoton" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,21 @@ | ||
{ | ||
"build": { | ||
"core": "naked", | ||
"extra_flags": "-DN79E84X -DN79E845 -DNAKED_ARCH_MCS51 -DNAKED_MCS51_N79E84X --iram-size 256 --xram-size 256 --code-size 16384 --stack-size 128", | ||
"extra_flags": "-DN79E84X -DN79E845 -DNAKED_ARCH_MCS51 -DNAKED_MCS51_N79E84X", | ||
"f_cpu": "22118400L", | ||
"size_iram": 256, | ||
"size_xram": 256, | ||
"size_code": 16384, | ||
"mcu": "mcs51", | ||
"mcu": "n79e845", | ||
"cpu": "mcs51", | ||
"variant": "n79e84x" | ||
}, | ||
"frameworks": [ | ||
"naked" | ||
], | ||
"frameworks": [], | ||
"upload": { | ||
"maximum_ram_size": 512, | ||
"maximum_size": 16384 | ||
}, | ||
"name": "n79e845", | ||
"url": "www.nuvoton.com/hq/products/microcontrollers/8bit-8051-mcus/low-pin-count-8051-series/n79e845/", | ||
"name": "Generic N79E845", | ||
"url": "http://www.nuvoton.com/hq/products/microcontrollers/8bit-8051-mcus/low-pin-count-8051-series/n79e845/", | ||
"vendor": "Nuvoton" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,21 @@ | ||
{ | ||
"build": { | ||
"core": "naked", | ||
"extra_flags": "-DN79E85X -DN79E854 -DNAKED_ARCH_MCS51 -DNAKED_MCS51_N79E85X --iram-size 256 --xram-size 256 --code-size 8192 --stack-size 128", | ||
"extra_flags": "-DN79E85X -DN79E854 -DNAKED_ARCH_MCS51 -DNAKED_MCS51_N79E85X", | ||
"f_cpu": "22118400L", | ||
"size_iram": 256, | ||
"size_xram": 256, | ||
"size_code": 8192, | ||
"mcu": "mcs51", | ||
"mcu": "n79e854", | ||
"cpu": "mcs51", | ||
"variant": "n79e85x" | ||
}, | ||
"frameworks": [ | ||
"naked" | ||
], | ||
"frameworks": [], | ||
"upload": { | ||
"maximum_ram_size": 512, | ||
"maximum_size": 8192 | ||
}, | ||
"name": "n79e854", | ||
"url": "www.nuvoton.com/hq/products/microcontrollers/8bit-8051-mcus/low-pin-count-8051-series/n79e854/", | ||
"name": "Generic N79E854", | ||
"url": "http://www.nuvoton.com/hq/products/microcontrollers/8bit-8051-mcus/low-pin-count-8051-series/n79e854/", | ||
"vendor": "Nuvoton" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,22 @@ | ||
{ | ||
"build": { | ||
"core": "naked", | ||
"extra_flags": [ | ||
"-DN79E85X", "-DN79E855", "-DNAKED_ARCH_MCS51", "-DNAKED_MCS51_N79E85X" | ||
], | ||
"extra_flags": "-DN79E85X -DN79E855 -DNAKED_ARCH_MCS51 -DNAKED_MCS51_N79E85X", | ||
"f_cpu": "22118400L", | ||
"size_iram": 256, | ||
"size_xram": 256, | ||
"size_code": 16384, | ||
"size_heap": 128, | ||
"mcu": "mcs51", | ||
"mcu": "n79e855", | ||
"cpu": "mcs51", | ||
"variant": "n79e85x" | ||
}, | ||
"frameworks": [ | ||
"naked" | ||
], | ||
"frameworks": [], | ||
"upload": { | ||
"maximum_ram_size": 512, | ||
"maximum_size": 16384 | ||
}, | ||
"name": "n79e855", | ||
"url": "www.nuvoton.com/hq/products/microcontrollers/8bit-8051-mcus/low-pin-count-8051-series/n79e855/", | ||
"name": "Generic N79E855", | ||
"url": "http://www.nuvoton.com/hq/products/microcontrollers/8bit-8051-mcus/low-pin-count-8051-series/n79e855/", | ||
"vendor": "Nuvoton" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,23 @@ | ||
{ | ||
"build": { | ||
"extra_flags": [ | ||
"" | ||
], | ||
"f_cpu": "11059200", | ||
"size_iram": 256, | ||
"size_xram": 0, | ||
"size_code": 4096, | ||
"size_heap": 64, | ||
"mcu": "mcs51", | ||
"cpu": "8051", | ||
"variant": "stc15f204ea" | ||
"mcu": "stc15f204ea", | ||
"cpu": "mcs51" | ||
}, | ||
"frameworks": [ | ||
], | ||
"frameworks": [], | ||
"upload": { | ||
"maximum_ram_size": 256, | ||
"maximum_size": 4096 | ||
"maximum_size": 4096, | ||
"protocol": "stcgal", | ||
"protocols": [ | ||
"stcgal" | ||
] | ||
}, | ||
"name": "stc15f204ea", | ||
"name": "Generic STC15F204EA", | ||
"url": "https://www.stcmicro.com/STC/STC15F204EA.html", | ||
"vendor": "STC" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,23 @@ | ||
{ | ||
"build": { | ||
"extra_flags": [ | ||
"" | ||
], | ||
"f_cpu": "11059200", | ||
"size_iram": 256, | ||
"size_xram": 256, | ||
"size_code": 4096, | ||
"size_heap": 128, | ||
"mcu": "mcs51", | ||
"cpu": "8051", | ||
"variant": "stc15w404as" | ||
"mcu": "stc15w408as", | ||
"cpu": "mcs51" | ||
}, | ||
"frameworks": [ | ||
], | ||
"frameworks": [], | ||
"upload": { | ||
"maximum_ram_size": 512, | ||
"maximum_size": 4096 | ||
"maximum_size": 4096, | ||
"protocol": "stcgal", | ||
"protocols": [ | ||
"stcgal" | ||
] | ||
}, | ||
"name": "stc15w404as", | ||
"name": "Generic STC15W408AS", | ||
"url": "https://www.stcmicro.com/STC/STC15W408AS.html", | ||
"vendor": "STC" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,23 @@ | ||
{ | ||
"build": { | ||
"extra_flags": [ | ||
"" | ||
], | ||
"f_cpu": "11059200", | ||
"size_iram": 256, | ||
"size_xram": 256, | ||
"size_code": 8192, | ||
"size_heap": 128, | ||
"mcu": "mcs51", | ||
"cpu": "8051", | ||
"variant": "stc15w408as" | ||
"mcu": "stc15w408as", | ||
"cpu": "mcs51" | ||
}, | ||
"frameworks": [ | ||
], | ||
"frameworks": [], | ||
"upload": { | ||
"maximum_ram_size": 512, | ||
"maximum_size": 8192 | ||
"maximum_size": 8192, | ||
"protocol": "stcgal", | ||
"protocols": [ | ||
"stcgal" | ||
] | ||
}, | ||
"name": "stc15w408as", | ||
"name": "Generic STC15W408AS", | ||
"url": "https://www.stcmicro.com/STC/STC15W408AS.html", | ||
"vendor": "STC" | ||
} |
Oops, something went wrong.