View previous topic :: View next topic |
Author |
Message |
aaronik19
Joined: 25 Apr 2011 Posts: 297
|
Time Base Control Register |
Posted: Sun Nov 27, 2011 3:06 am |
|
|
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: 9228 Location: Greensville,Ontario
|
|
Posted: Sun Nov 27, 2011 6:25 am |
|
|
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
|
|
Posted: Sun Nov 27, 2011 6:53 am |
|
|
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: 9228 Location: Greensville,Ontario
|
|
Posted: Sun Nov 27, 2011 8:53 am |
|
|
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
|
|
|
|