Comments (2)
Good catch- I'd write it like this to make it even more clear:
ADC_CFG = (ADC_CFG & ~bADC_CLK) | speed;
If you send a pull request, we can merge it.
from ch554_sdcc.
The comment of the code is also the opposite of the document.
ADC reference clock frequency selection bit, if the bit is 0, select the slow clock, and 384 Fosc cycles are required for each ADC. If the bit is 1, select the fast clock, and 96 Fosc cycles are required for each ADC
* Input : uint8_t speed clock setting
1 Slow 384 Fosc
0 Fast 96 Fosc
from ch554_sdcc.
Related Issues (20)
- An arduino wrapper over ch554_sdcc HOT 1
- Win7 needs Zadig driver setup HOT 4
- default CODE_SIZE should be 14kB (0x3800) HOT 2
- make debug.c components optional to save code size HOT 4
- Is it possible to rewrite the description without unnecessary words? HOT 1
- x and x2 should not be volatile HOT 3
- race condition in ring buffer
- bug in UART ISR HOT 1
- reconsider 24Mhz for USB CDC HOT 5
- blink example doesn't work with P3
- ws2812 example doesn't work with default clock setting HOT 3
- ws2812 example does not compile under Windows MinGW HOT 4
- UsbHostHub_KM example fails to compile HOT 5
- Linux flash tools HOT 7
- example in readme has wrong command HOT 3
- Official English Datasheets! HOT 1
- Chinese characters HOT 4
- ws2812 Makefile correction HOT 1
- Some examples broken with SDCC 4.2.0 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ch554_sdcc.