English Amiga Board Amiga Lore


Go Back   English Amiga Board > Coders > Coders. General > Coders. Tutorials

 
 
Thread Tools
Old 11 June 2010, 13:46   #1
oRBIT
Zone Friend
 
Join Date: Apr 2006
Location: Gothenburg/Sweden
Age: 38
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
oRBIT is offline  
AdSense AdSense  
Advertisement:
Old 11 June 2010, 13:55   #2
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 39
Posts: 13,857
Only proper (any) OS compatible way is timer.device.
Toni Wilen is online now  
Old 11 June 2010, 15:34   #3
AlfaRomeo
A1200 040 SAM440EP 667
 
Join Date: Jan 2008
Location: Lisbon / Portugal
Posts: 727
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
AlfaRomeo is offline  
Old 11 June 2010, 15:43   #4
pmc
rebooting...
pmc's Avatar
 
Join Date: Apr 2007
Location: Elsewhere
Posts: 1,593
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!!
pmc is offline  
Old 11 June 2010, 23:31   #5
AlfaRomeo
A1200 040 SAM440EP 667
 
Join Date: Jan 2008
Location: Lisbon / Portugal
Posts: 727
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.
AlfaRomeo is offline  
AdSense AdSense  
Advertisement:
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Old timers dying off Fred the Fop Nostalgia & memories 258 12 March 2014 10:21
example of a CIA timer interrupt in assembler using cia.resource Apollo Coders. Asm / Hardware 3 05 July 2013 08:40
Request: AF 109,110,111 tutorial AlfaRomeo AMR suggestions and feedback 6 23 September 2009 00:44
CIA test Toni Wilen Coders. General 13 03 March 2007 22:14
The EAB "old timers" thread Bloodwych Retrogaming General Discussion 102 28 October 2006 12:01

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 21:13.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Page generated in 0.11075 seconds with 11 queries