Question

In: Computer Science

In PIC32-Embedded system. Give the value to be loaded in T1CON if the timer is used...

In PIC32-Embedded system. Give the value to be loaded in T1CON if the timer is used as counter with prescaler 1:64, synchronous, external clock source.

Solutions

Expert Solution






In order to use the Timer of PIC-32 Embedded system as Counter with prescaler 1:64 and synchronous external clock source. 
You need to set the following bits of T1CON Register as Follows:
bit 15 as "0" - In order to disable the timer and enable the counter
bit(5-4) as "10" inorder to set the counter with software prescaler 1:64
bit2 as "1" in order to enable the external clock synchronization.
 The remaining bits of the T1CON register as set as per your requirements and the bitwise explanations are given below.

The Bit wise explanation of T1CON Register is as follows:
bit 15    ON: Timer On bit
                1 = Timer is enabled
                0 = Timer is disabled
   bit 14    FRZ: Freeze in Debug Exception Mode bit
                1 = Freeze operation when CPU is in Debug Exception mode
                0 = Continue operation when CPU is in Debug Exception mode
   bit 13    SIDL: Stop in Idle Mode bit
                1 = Discontinue operation when device enters Idle mode
                0 = Continue operation in Idle mode
   bit 12    TMWDIS: Asynchronous Timer Write Disable bit
              In Asynchronous Timer mode:
                 1 = Writes to asynchronous TMR1 are ignored until pending write operation completes
                 0 = Back-to-back writes are enabled (legacy asynchronous timer functionality)
              In Synchronous Timer mode:
                 This bit has no effect.
   bit 11    TMWIP: Asynchronous Timer Write in Progress bit
              In Asynchronous Timer mode:
                  1 = Asynchronous write to TMR1 register in progress
                  0 = Asynchronous write to TMR1 register complete
              In Synchronous Timer mode:
                  This bit is read as ‘0’.
   bit 10-8  Unimplemented: Read as ‘0’
   bit 7     TGATE: Gated Time Accumulation Enable bit
              When TCS = 1:
                 This bit is ignored and read ‘0’.
              When TCS = 0:
                   1 = Gated time accumulation is enabled
                   0 = Gated time accumulation is disabled
   bit 6     Unimplemented: Read as ‘0’
   bit 5-4   TCKPS[1:0]: Timer Input Clock prescaler Select bits
                   11 = 1:256 prescale value
                   10 = 1:64 prescale value
                   01 = 1:8 prescale value
                   00 = 1:1 prescale value
   bit 3     Unimplemented: Read as ‘0’
   bit 2     TSYNC: Timer External Clock Input Synchronization Selection bit
             When TCS = 1:
                   1 = External clock input is synchronized
                   0 = External clock input is not synchronized
             When TCS = 0:
                   This bit is ignored and read ‘0’.
   bit 1     TCS: Timer Clock Source Select bit
                    1 = External clock from T1CKI pin
                    0 = Internal peripheral clock
   bit 0     Unimplemented: Read as ‘0’

Related Solutions

timer base value of timer instruction
timer base value of timer instruction
1.give some examples about I/O components in an embedded system 2.Describe hardware components for a mini...
1.give some examples about I/O components in an embedded system 2.Describe hardware components for a mini embedded system with OS 3.What are embedded system basic requirements? 4.What is ARM processor architecture?
Design an embedded system using MSP430 to control a traffic light system. It is included a...
Design an embedded system using MSP430 to control a traffic light system. It is included a complete design description of a traffic light system to help you in your design. Show the hardware schematics and the software needed to complete your design.
The Electron Transport System consists of a series of enzyme complexes that are embedded in the...
The Electron Transport System consists of a series of enzyme complexes that are embedded in the inner mitochondrial membrane. Which one of the following statements is NOT TRUE of mitochondria or the electron transport chain? a. Tissues that run aerobic metabolism are enriched in mitochondria. b. Glycolysis, the first stage of carbohydrate breakdown, occurs in the inner mitochondrial membrane. c. Coenzyme Q10 is a critical electron carrier imbedded in the inner mitochondrial membrane. d. The Electron Transport System is the...
) Design a simple embedded system with PIC16F84A microcontroller (using 20MHz resonator). The system can drive...
) Design a simple embedded system with PIC16F84A microcontroller (using 20MHz resonator). The system can drive a LED light on for 52.6ms on and 26ms off repeatedly. A watchdog timer should be enabled and have a time out period of 72 ms. Sketch the circuit and write the complete assembly program.
Design an embedded system using a MSP430 to create a slot machine. Include a complete description...
Design an embedded system using a MSP430 to create a slot machine. Include a complete description of a slot machine designed using logic circuits. You must submit a complete design with all the hardware and software needs, include a c program that utilizes the msp430 for this.
Define Embedded options in debt and explain how it is used to minimize interest rate risk
Define Embedded options in debt and explain how it is used to minimize interest rate risk
1. Give around 7 examples of where you would find embedded computers. These can be at...
1. Give around 7 examples of where you would find embedded computers. These can be at home or at school even work. 2. Say you are a CIO of some sort of firm, what factors would you consider when you are selecting secondary storage media for your companys records? 3. Which is faster and why? CPU to Cache communication or CPU to RAM communication
What is Generalised extreme value (GEV) and what is it used for give examples aswell
What is Generalised extreme value (GEV) and what is it used for give examples aswell
There are 1001 used car sellers, and Let's say the value they give is $0, $100,...
There are 1001 used car sellers, and Let's say the value they give is $0, $100, $200, $300, ... , $9900, $ 10000(that is, their willing price). There are many buyers who value each car higher than its current owner. For example, a car worth $3700 to a seller is worth $4700 to a buyer. In this case, obtain a balanced price. In other words, look for a price from the buyer's point of view that they think they deserve...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT