CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Time Base Control Register

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
aaronik19



Joined: 25 Apr 2011
Posts: 297

View user's profile Send private message

Time Base Control Register
PostPosted: Sun Nov 27, 2011 3:06 am     Reply with quote

Hi,

I am converting a program from Freescale/Motorola to PIC and there is a register called TBCR (Time Base Control Registrer). Is this a simple timer? The register should interrupt 9600time/second, so I assumed that a simple timer can make this interrupt while it over flows from 255->0.

http://www.freescale.com/files/microcontrollers/doc/ref_manual/DRM004.pdf on page 94.

Thanks for your help
temtronic



Joined: 01 Jul 2010
Posts: 9254
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Sun Nov 27, 2011 6:25 am     Reply with quote

You should download the '908' datasheet to confirm but at quick glance, yes , it's a simple timer setup to give a 'heartbeat' of 9600 interrupts per second.
Since you're into DALI, are you building the controller from scratch? If so be sure to follow the hardware schematics to be sure your logic levels, timing, etc. are correct. There are 'OEM' modules that allow a PC or other RS232 device to control the DALI bus,similar to the one that the article in your post is written for.
You might want to 'google DALI PIC16F84' or similar to see what's already been written as you're not the first to attempt it.!
aaronik19



Joined: 25 Apr 2011
Posts: 297

View user's profile Send private message

PostPosted: Sun Nov 27, 2011 6:53 am     Reply with quote

thanks temtronic for your reply. I googled for many months and I found no OEMs! Maybe I did not use the right words to search. Do you find anything please? Appreciate if you can share. I found an application note from Microchip but for some reason, it did not work!
temtronic



Joined: 01 Jul 2010
Posts: 9254
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Sun Nov 27, 2011 8:53 am     Reply with quote

google 'dali bridge'... over 8 million hits but on first page..

AN811 is there ans well as

www.dalichip.com
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Sun Nov 27, 2011 11:34 am     Reply with quote

Or Google with search terms: EN60929 rs232

Microchip AN811: The RS-232/DALI Bridge Interface

Also:
International Rectifier: Digitally Addressable DALI Dimming Ballast. A schematic of PIC16F628 + IR2159 ballast

And just a random supplier of controllers:
http://www.ilight.co.uk/
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group