![]() |
|
|||||||
| Register | >> Amiga FAQ/Wiki << | Rules & Help | Members List / Moderators List | Search | Today's Posts | Mark Forums Read |
![]() |
|
|
Thread Tools |
|
|
#1 |
|
Zone Friend
Join Date: Apr 2006
Location: Gothenburg/Sweden
Age: 37
Posts: 173
|
Tutorial request: CIA timers
Anyone got a tutorial (asm, for newbies
) somewhere concerning CIA timers?I'm interested in setting up a 50/60Hz interrupt using CIA but haven't got a clue sadly. (Btw: What's the proper way of setting up such an interrupt that's compatible with OS4?) Thanks in advance |
|
|
|
|
|
#2 |
|
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 38
Posts: 11,936
|
Only proper (any) OS compatible way is timer.device.
|
|
|
|
|
|
#3 |
|
A1200 040 SAM440EP 667
Join Date: Jan 2008
Location: Lisbon / Portugal
Posts: 716
|
I have a tutorial about CIA from the banging the metal tutorial of AmigaFormat 124 but it doesn´t mension how to make interrupts from CIA
|
|
|
|
|
|
#4 |
|
is long gone
Join Date: Apr 2007
Location: London
Posts: 1,590
|
I know it's covered in the HRM.
From memory, *I think* it (very briefly) works something like: patch the correct interrupt vector with the routine you want to run whenever the countdown timer expires set the required CIA for continuous countdown timer write the required time to countdown from to low timer byte and high timer byte (writing high byte starts the timer) An interrupt will occurr every time the countdown timer expires and execute your interrupt code. Like I say though - this is just from memory - I would need to check the HRM and try a few things out to be sure... EDIT: Forgot to say - this is the hardware banging method - *not* OS friendly!! |
|
|
|
|
|
#5 |
|
A1200 040 SAM440EP 667
Join Date: Jan 2008
Location: Lisbon / Portugal
Posts: 716
|
Just in case interesting you:
http://cataclysm.cx/random/amiga/ref.../node012E.html http://amigarealm.whdownload.com/com...ardref/apf.htm Last edited by AlfaRomeo; 11 June 2010 at 23:37. |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Request: AF 109,110,111 tutorial | AlfaRomeo | AMR suggestions and feedback | 6 | 23 September 2009 00:44 |
| A1200 CIA (U7) needed | kipper2k | support.Hardware | 7 | 28 February 2009 22:59 |
| CIA test | Toni Wilen | Coders. General | 13 | 03 March 2007 22:14 |
| CIA responsible for 80000003 error? | Fingerlickin_B | support.Hardware | 5 | 20 December 2006 02:35 |
| Old timers dying off | Fred the Fop | Nostalgia & memories | 193 | 15 January 2006 23:43 |