I'm trying to learn how to use the CTC mode in AVR and I'm trying to figure out why I should minus 1 when I set the comparing value.
For instance,now I'm working to send the working time of the AVR every 200 ms and with the calculation I find out the value should be 50000,however in a video about this program,the man claims that it should be 50000-1,why is that?
How to set compare value in AVR CTC mode
347 Views Asked by Lep Li At
1
There are 1 best solutions below
Related Questions in AVR
- saving an array in EEPROM
- How to call multiple slaves for Spi data transmission?
- Changing just one byte in SD card sector
- is it possible compare a 16-bit value with a 8-bit compare match ISR
- UART RX Interrurpt fired too early
- Making a member function static makes the program fail to compile. Can't figure out why
- Arduino Programming Without Arduino Libraries - Atmel Studio
- SPI with Atmega32 and At42QT2100
- XMega: CDC on USB composite controller does not function properly
- How to build avr-gcc using android NDK
- PySerial dataSend doesn't receive data
- Efficient bit checking in embedded C Program
- Issue sending c char* over USART
- What is the efficient way of parsing string on embedded system?
- Controlling 3 stepper to move on xyz direction
Related Questions in CTC
- ctcdecode install fail - Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-req-build-7zcjual1/
- How to use TF CTC loss with variable length features and labels
- How to set compare value in AVR CTC mode
- How can I get the confidence scores of LPRNet?
- Combine output of ctc distribution with decoder output distribution?
- CTC_Loss for Model training in Tensorflow2.0
- ValueError: Shape (None, 17) must have rank 1
- Understanding how TF implemention for CTC works
- machine learning+deep learning+speech recognition
- Automatic Speech Recognition CTC Loss Suddenly Goes to Infinity After 100 Batches
- Loading custom CTC layer from h5 file in Keras
- how to implement word beam search ctc to keras?
- Invalid argument: Saw a non-null label (index >= num_classes - 1) following a null label
- Invalid argument:Not enough time for target transition sequence
- how to save ocr model from keras author-A_K_Nain
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
It's because the underlying counter starts at zero and ends at "TOP" as it's referred to in the various AVR datasheets. Without know the exact part you're using, I can't refer you to a datasheet, but they all use basically the same terminology in their matrix of timer modes.
So if you want the counter to count exactly 50000 times, you have to subtract one. CTC means "timer on compare match" and starting at zero means you need to be "off by one." Simple as that.
Really good discussion of this and other AVR topics at AVRGeeks