%3Cdiv%20class%3D%22c2%22%3E%0A%3Cdiv%20id%3D%22MathJax_MSIE_Frame%22%20class%3D
ID: 1847074 • Letter: #
Question
%3Cdiv%20class%3D%22c2%22%3E%0A%3Cdiv%20id%3D%22MathJax_MSIE_Frame%22%20class%3D%22c1%22%3E%3C%2Fdiv%3E%0A%3C%2Fdiv%3E%0A%3Cp%3EtHIS%20IS%20THE%20QUESTION%20BUT%20ALL%20i%20NEED%20IS%20TO%20UNDERSTAN%20THE%0AREGISTER%3C%2Fp%3E%0A%3Cp%3E%20%3C%2Fp%3E%0A%3Cp%3E%3Cspan%20class%3D'c3'%3EWrite%20a%20C%20program%20with%20a%20200%20Hz%20external%20clock%0Afed%20into%20pin%20T1CKI%20(not%20T0CKI)%20to%20display%20the%20seconds%20and%20minutes%0Aon%20PORTB%20and%20PORTD.%20You%20can%20pick%20your%20timer%20as%20in%208%20bit%20or%2016%20bit%0Amode.%20Show%20which%20example%20can%20be%20modified%20from%20and%20how%20the%20code%20is%0Amodified.%3C%2Fspan%3E%3C%2Fp%3E%0A%3Cp%3E%26nbsp%3B%3C%2Fp%3E%0A%3Cp%3E1%3A1%20prescale%2C%208%20BIT%20%26nbsp%3B%3Cbr%20%2F%3E%0Ayou%20change%20to%20timer1%20because%20T1CKI%20right%3F%3Cbr%20%2F%3E%0A%3Cbr%20%2F%3E%0Aalso%20I%20do%20not%20get%20how%20you%20get%20TICON%20%3D%200x08%3Cbr%20%2F%3E%0A%3Cbr%20%2F%3E%0Athis%20is%20what%20I%20do%3Cbr%20%2F%3E%0ARD16%20%3D%200%20because%20you%20use%208%20bit%3Cbr%20%2F%3E%0Ano%20use%3Cbr%20%2F%3E%0AT1CKPS1%20%3D%200%20this%20is%20the%20prescalar%20it%20only%20going%20to%20go%20up%20to%0A1%3A8%3F%3Cbr%20%2F%3E%0AT1CKPS0%20%3D%200%3Cbr%20%2F%3E%0AT1OSCEN%20%3D%201%20when%20it%20enabled%20can%20you%20enxplain%20when%20to%20put%201%20is%20this%0Aalways%3F%3Cbr%20%2F%3E%0AT1SYNC%20%3D0%20because%20TMR10N%20is%20going%20to%20be%200%20we%20always%20stop%20this%0Aright%3F%3Cbr%20%2F%3E%0ATMR1CS%20%3D1%20because%20we%20are%20using%20external%20clock%20right%3F%3Cbr%20%2F%3E%0ATMR1ON%20%3D%200%20to%20stop%20the%20clock%3C%2Fp%3E%0A%3Cp%3E%26nbsp%3B%3C%2Fp%3E%0A%3Cp%3EAnd%20the%20other%20part%20I%20do%20not%20understand%20is%20this%3C%2Fp%3E%0A%3Cp%3EWhy%20they%20divide%20by%20256%20and%20not%20by%202.56%3C%2Fp%3E%0A%3Cp%20class%3D%22MsoListParagraphCxSpFirst%20c9%22%3E%3Cspan%20class%3D%0A'c6'%3E%3Cspan%20class%3D%22c5%22%3E(a)%3Cspan%20class%3D%0A'c4'%3E%26nbsp%3B%26nbsp%3B%3C%2Fspan%3E%3C%2Fspan%3E%3C%2Fspan%3E%20%3Cspan%20class%3D'c8'%3EConsider%0Aexample%2013-1%20on%20page%20502%20where%20Vref%20%3D%202.56%20V%20and%20analog%20input%20is%0A1.7V%20and%202.1V.%20%3Cb%20class%3D%22c7%22%3EChange%3C%2Fb%3E%20Vref%20to%205V%20and%20recalculate%0Athe%20D0-D7%20outputs%20if%20possible%20(or%20show%20why%20it%20is%20not%20possible).%0ARedo%20this%20with%20Vref%20%3D%201V.%3C%2Fspan%3E%3C%2Fp%3E%0A%3Cp%20class%3D%22MsoListParagraphCxSpMiddle%20c10%22%3E%3Cspan%20class%3D%0A'c8'%3EANS%3A%3C%2Fspan%3E%3C%2Fp%3E%0A%3Cp%20class%3D%22MsoListParagraphCxSpMiddle%20c10%22%3E%3Cspan%20class%3D%0A'c8'%3E%3Cspan%20class%3D%0A%22c11%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2Fspan%3E%20First%20of%20we%0Acalculate%20the%20step%20size%205%2F256%3Cspan%20class%3D%22c11%22%3E%26nbsp%3B%3C%2Fspan%3E%20%3D%2019.5%0Amv%3C%2Fspan%3E%3C%2Fp%3E%0A%3Cp%20class%3D%22MsoListParagraphCxSpMiddle%20c10%22%3E%3Cspan%20class%3D'c8'%3EDout%20%3D%0A1.7%2F19.5mv%20%3D%2087%20in%20binary%20%3Cspan%20class%3D%0A%22c12%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2Fspan%3E%2001010111%3C%2Fspan%3E%3C%2Fp%3E%0A%3Cp%20class%3D%22MsoListParagraphCxSpMiddle%20c10%22%3E%3Cspan%20class%3D'c8'%3EDout%20%3D%0A2.1%2F19.5mv%20%3D%20107%20in%20binary%20%3Cspan%20class%3D%22c12%22%3E%26nbsp%3B%26nbsp%3B%3C%2Fspan%3E%0A01101011%3C%2Fspan%3E%3C%2Fp%3E%0A%3Cp%20class%3D%22MsoListParagraphCxSpMiddle%20c10%22%3E%3Cspan%20class%3D%0A'c8'%3E%26nbsp%3B%3C%2Fspan%3E%3C%2Fp%3E%0A%3Cp%20class%3D%22MsoListParagraphCxSpMiddle%20c10%22%3E%3Cspan%20class%3D'c8'%3EWhen%20the%0Avref%20is%201%20V%20step%20size%20is%201%2F256%3D%203.9%20mv%3C%2Fspan%3E%3C%2Fp%3E%0A%3Cp%20class%3D%22MsoListParagraphCxSpLast%20c10%22%3E%3Cspan%20class%3D'c8'%3EAs%20the%0Areference%20voltage%20is%201%20V%20while%20the%20input%20signal%20is%201.7%20and%202.1%20so%0Ain%20the%20both%20cases%20voltage%20are%20greater%20than%20reference%20voltage%20we%0Ahave%20values%20in%20both%20case%20256%20or%2011111111%3C%2Fspan%3E%3C%2Fp%3E%0A%3Cp%3E%3Cbr%20%2F%3E%0A%26nbsp%3B%3C%2Fp%3E%0AExplanation / Answer
They use 256 because converting the decimal to binary takes more times and provides the in accurate requirements
So we use 256 instead of 2.56
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.