Nugroho's blog.
This blog contains my work about anything.
Pages
(Move to ...)
Home
My Youtube
My Instagram
PayPal
Python
Programming
▼
Showing posts with label
assembler
.
Show all posts
Showing posts with label
assembler
.
Show all posts
Monday, June 1, 2015
Timer Time: Using Internal ATTiny13A Chip’s Timer, Automatic Mode, With Duty Cycle, and Phase Correction
›
The problem with the previous code is the phase, and it didn’t arise until we applied it on some ‘real’ hardware. Some hardware, like motor ...
Timer Time: Using Internal ATTiny13A Chip’s Timer, Automatic Mode, With Duty Cycle
›
Now , how to set the duty cycle? Uh, what’s duty cycle? Well, our previous program have the LED output turned on and off with certain freque...
Timer Time: Using Internal ATTiny13A Chip’s Timer, CTC with Automatic Mode
›
What if we want it to do the task automatically? With neither interrupt routine nor call command?. We could use CTC mode . The TCNT0 will st...
Saturday, May 30, 2015
Timer Time: Using Internal ATTiny13A Chip’s Timer, "OVF" Interrupt Mode (slightly modified)
›
We could speeding the timer by pre-loading TCNT0 with a value between 0 and 255, so TCNT0’ll start count at our own value instead of zero. ...
Timer Time: Using Internal ATTiny13A Chip’s Timer, "OVF" Interrupt Mode
›
Using interrupt, we have a subroutine that regularly called, automatically. It called when overflow flag (OVF) is set. As always, the timer/...
Friday, May 29, 2015
Timer Time: Using Internal ATTiny13A Chip’s Timer “CTC” Mode
›
Clear Timer on Compare (CTC) as its name suggests, will clear the flag if counter has same value with compare value. Thus, TCNT0 still co...
Timer Time: Using Internal ATTiny13A Chip’s Timer “Normal” Mode (Slightly Modified)
›
Our timer is static, it have to wait TCNT0 to count from 0 to 255 and then start over. We could modify it so it count from x to 255 to make ...
Timer Time: Using Internal ATTiny13A Chip’s Timer “Normal” Mode
›
Chip’s Internal Timer in ’Normal' mode will count from 0 to 255, set the overflow flag TOV0 to 0 and count again from 0 to 255, set the ...
Thursday, May 28, 2015
And Finally the Breathing LED is Here, :)
›
Jonathan Ive style, Old Macbook Pro sleep indicator LED. Using interrupt, fast PWM on ATTiny13A. .include "../tn13Adef.INC" .de...
Flip the Bit
›
Maybe it's just me, but I recently realized that we have a handy feature on ATTiny13A for flip the value of the bit. so instead of sbic ...
Wednesday, May 27, 2015
Blinking LED using Interrupt on ATTiny13A
›
Here's the template .include "../tn13Adef.INC" .def a=r16 .org $ 0000 ; startup vector rjmp onReset .or...
Oscillating LED Blink Delay on ATTiny13A
›
Based on my ADC with PWM output program . The expected result is the old school MacbookPro unibody sleep indicator LED; Sir Jonathan Ive st...
Tuesday, May 26, 2015
Timer on ATTiny13A using Interrupt
›
It started with this .include "../tn13Adef.inc" .org 0000 rjmp reset .org 0003 rjmp timer reset: sbi ddrb, 0 ...
Thursday, May 21, 2015
Serial Communication at ATTiny13A (#3)
›
Since we need to set the baud rate. We have to use either manual delay or timer interrupt. For now, I am trying using manual delay. Check wh...
Serial Communication at ATTiny13A (#2)
›
To send bit data, we need 10 bit. 0(start)-8bit-1(stop) so r17 now has value 10 .include "../tn13Adef.inc" .cseg .org 0x00 ...
Serial Communication ATTiny13A (#1)
›
ATTiny didn't come with TX/RX Pins, so I have to make it by myself. Got it from http://www.bot-thoughts.com/2012/12/attiny-software-ser...
›
Home
View web version