<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: NEED HELP WITH MC6821 in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/NEED-HELP-WITH-MC6821/m-p/160122#M9593</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;Don;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="Arial" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I feel like such a retard.&amp;nbsp;&amp;nbsp; I know I'm missing something here.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="Arial" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="Arial" size="3"&gt;you sent me:&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="Arial" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;So the sequence is:&lt;/P&gt;&lt;P&gt;write d2 = 0 to control reg. (to select the DDR reg)&lt;/P&gt;&lt;P&gt;write to DDR reg your port direction bit pattern (FF for all outputs)&lt;/P&gt;&lt;P&gt;write d2=1 (04) to control reg (to select port data reg)&lt;/P&gt;&lt;P&gt;write/read to peripheral reg (data to&amp;nbsp; ports&amp;nbsp; )&lt;/P&gt;&lt;P&gt;don&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If nothing changes, who can you write d2 =0 and then a port direction pattern.&amp;nbsp; If all the selects are the same, how can the unit tell where anyting goes?&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; See... I'm missing something.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;I know I'm being a pain, but maybe one more little piece of info can get me over the hump.&amp;nbsp;&amp;nbsp;&amp;nbsp; No wonder they don't use this thing anymore....Is there a Capt. Zoom decoder ring I can buy somewhere that clear this thing up?&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="3"&gt;Steve&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Mar 2009 23:45:02 GMT</pubDate>
    <dc:creator>drummerboy</dc:creator>
    <dc:date>2009-03-16T23:45:02Z</dc:date>
    <item>
      <title>NEED HELP WITH MC6821</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/NEED-HELP-WITH-MC6821/m-p/160117#M9588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG style=": ; font-size: 3; font-family: Arial;"&gt;I make military spare and repair parts.&amp;nbsp;&amp;nbsp; One old item uses the MC6821.&amp;nbsp; I have been trying my best to understand how this **bleep** thing gets addressed and the app's sheets are written as narrative like a text book for those who already know how to use it..... which makes it valueless to me.&lt;/STRONG&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; font-size: 3;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; What I need to do is very simple for test purposes only.&amp;nbsp;&amp;nbsp; I need to make both of the&amp;nbsp; ports outputs and then write a square wave into them at about 1 second rate.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; font-size: 3; font-family: Arial;"&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; font-size: 3; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have an ATE system that I can use to set up data lines and write pulses and the like.&amp;nbsp;&amp;nbsp; I just have no experience in using the MC6821.&amp;nbsp;&amp;nbsp;&amp;nbsp; Is there anyone who can give me the a simple explanation like... put this word on the data bus, pulse the enable, then put this on the data bus, pulse the enable, and so on so I can use the ATE to generate the square waves I need.&amp;nbsp;&amp;nbsp; I can do all the ATE programming, but this MC6821 has me stumped on how to use it.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; H E L P&amp;nbsp;&amp;nbsp;&amp;nbsp; M E&amp;nbsp; ....&amp;nbsp; S O M E B O D Y&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2009 02:47:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/NEED-HELP-WITH-MC6821/m-p/160117#M9588</guid>
      <dc:creator>drummerboy</dc:creator>
      <dc:date>2009-03-10T02:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: NEED HELP WITH MC6821</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/NEED-HELP-WITH-MC6821/m-p/160118#M9589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;It was a pity that Moto never gave a simple explantion of how to setup the 6821 PIA IC.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;for each port It has two addresses, a control/status reg &amp;amp; a 'peripheral/ddr' reg.&lt;/P&gt;&lt;P&gt;It is not complicated. The problem is that they never gave a clear, unique Name to 'peripheral/ddr register', so it seems confusing.&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the 'peripheral/DDR' reg, the device has effectively two registers:&lt;/P&gt;&lt;P&gt;- a peripheral register used to read/write data to the port&lt;/P&gt;&lt;P&gt;&amp;nbsp;-a data direction register to configure each port bits to input or output.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The trick is that both registers share the same address, To access the DDR reg. you have to clear a bit (d3) in the Control reg.&lt;/P&gt;&lt;P&gt;So the sequence is:&lt;/P&gt;&lt;P&gt;write d3 = 0 to control reg. (to select the DDR reg)&lt;/P&gt;&lt;P&gt;write to DDR reg your port direction bit pattern&lt;/P&gt;&lt;P&gt;write d3=1 to control reg (to select port data reg)&lt;/P&gt;&lt;P&gt;write/read to peripheral reg (to&amp;nbsp; ports&amp;nbsp; )&lt;/P&gt;&lt;P&gt;don&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2009 03:52:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/NEED-HELP-WITH-MC6821/m-p/160118#M9589</guid>
      <dc:creator>donw</dc:creator>
      <dc:date>2009-03-10T03:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: NEED HELP WITH MC6821</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/NEED-HELP-WITH-MC6821/m-p/160119#M9590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;sorry: use bit d2 not d3 in the control reg.&amp;nbsp;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2009 02:08:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/NEED-HELP-WITH-MC6821/m-p/160119#M9590</guid>
      <dc:creator>donw</dc:creator>
      <dc:date>2009-03-11T02:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: NEED HELP WITH MC6821</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/NEED-HELP-WITH-MC6821/m-p/160120#M9591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I do appreciate that you took the time to respond.&amp;nbsp;&amp;nbsp; I think I need to make myself clearer than I had before.&amp;nbsp;&amp;nbsp; I am almost exclusively involved with small microcontrollers like the Microchip PIC series and the Intel line like the older 8085 structures.&amp;nbsp;&amp;nbsp;&amp;nbsp; I have NEVER used a PIA before.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="Arial" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; When you saythings like "write a 0D to the control register" it is virtually meaningless to me because I don't know the proceedure.&amp;nbsp;&amp;nbsp; This is a very confusing chip for the novice to pick up.&amp;nbsp;&amp;nbsp;&amp;nbsp; I've been doing micro's for quite a while, but this data sheet stuff is written as if one plumber is telling another plumber how to install a sink.&amp;nbsp;&amp;nbsp;&amp;nbsp; Both plumbers pretty much know how to do it already.&amp;nbsp;&amp;nbsp;&amp;nbsp; I need someone to help me as if the plumber was telling a shoe salesman how to install a sink.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="Arial" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I there a way for anyone to write simple instructions like;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="Arial" size="3"&gt;1- put [0d] on the data bus&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="Arial" size="3"&gt;2- pulse the [e] line&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="Arial" size="3"&gt;3- put [14] on the data bus&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="Arial" size="3"&gt;4- pulse the [e] line&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="Arial" size="3"&gt;and so on.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; What I want to do is simply make both ports output ports.&amp;nbsp;&amp;nbsp;I need to then succeccively write all 1's and then all 0's to both ports.&amp;nbsp;&amp;nbsp;&amp;nbsp; THAT'S IT!&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="Arial" size="3"&gt;I have no familiarity with, or access to any motorola 6800 equipment, but my ATE can create any 8 bit word I need and any kind of positive/negative pulses and address lines you tell me to create.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="Arial" size="3"&gt;I feel like such an&amp;nbsp;A-Hole because I've beeen going over the data sheet again and again, and I can't grasp how you address different registers that have the same address.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="Arial" size="3"&gt;When I finally see&amp;nbsp;how it's done I know I'll feel even worse, but my back is against the wall because I have to ship this controller board to the U.S. Army, and my time is just about all gone.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="Arial" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Can someone please help me.&lt;/FONT&gt;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2009 20:34:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/NEED-HELP-WITH-MC6821/m-p/160120#M9591</guid>
      <dc:creator>drummerboy</dc:creator>
      <dc:date>2009-03-12T20:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: NEED HELP WITH MC6821</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/NEED-HELP-WITH-MC6821/m-p/160121#M9592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since you are emulating all the uP control lines with your ATE device, you have some work to do!&lt;/P&gt;&lt;P&gt;Check out the data sheet for a micro such as mc6802.&lt;/P&gt;&lt;P&gt;Or Look at bus timing diagrams fig 1 of PIA data sheet:&lt;/P&gt;&lt;P&gt;to get a byte to the PIA:&lt;/P&gt;&lt;P&gt;tie unneed cs1, cs2 to suitable levels&lt;/P&gt;&lt;P&gt;set E line high, /WR line high&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;take /cs0 high&amp;nbsp; to deselect the ic&amp;nbsp;&lt;/P&gt;&lt;P&gt;setup the data bus data,&lt;/P&gt;&lt;P&gt;then take the E line low&amp;nbsp;&lt;/P&gt;&lt;P&gt;then set PIA's two reg. select lines [ RS0,1]&amp;nbsp; to select the correct reg.&lt;/P&gt;&lt;P&gt;then take the&amp;nbsp; PIA's /cs&amp;nbsp; low&lt;/P&gt;&lt;P&gt;pulse /WR line low/high to latch out data&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;take E high&lt;/P&gt;&lt;P&gt;take /cs0 high&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is all from my (old) memory, so check the timing diagrams!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;So the sequence is:&lt;/P&gt;&lt;P&gt;write d2 = 0 to control reg. (to select the DDR reg)&lt;/P&gt;&lt;P&gt;write to DDR reg your port direction bit pattern (FF for all outputs)&lt;/P&gt;&lt;P&gt;write d2=1 (04) to control reg (to select port data reg)&lt;/P&gt;&lt;P&gt;write/read to peripheral reg (data to&amp;nbsp; ports&amp;nbsp; )&lt;/P&gt;&lt;P&gt;don&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Mar 2009 02:46:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/NEED-HELP-WITH-MC6821/m-p/160121#M9592</guid>
      <dc:creator>donw</dc:creator>
      <dc:date>2009-03-13T02:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: NEED HELP WITH MC6821</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/NEED-HELP-WITH-MC6821/m-p/160122#M9593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;Don;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="Arial" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I feel like such a retard.&amp;nbsp;&amp;nbsp; I know I'm missing something here.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="Arial" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="Arial" size="3"&gt;you sent me:&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="Arial" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;So the sequence is:&lt;/P&gt;&lt;P&gt;write d2 = 0 to control reg. (to select the DDR reg)&lt;/P&gt;&lt;P&gt;write to DDR reg your port direction bit pattern (FF for all outputs)&lt;/P&gt;&lt;P&gt;write d2=1 (04) to control reg (to select port data reg)&lt;/P&gt;&lt;P&gt;write/read to peripheral reg (data to&amp;nbsp; ports&amp;nbsp; )&lt;/P&gt;&lt;P&gt;don&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If nothing changes, who can you write d2 =0 and then a port direction pattern.&amp;nbsp; If all the selects are the same, how can the unit tell where anyting goes?&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; See... I'm missing something.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;I know I'm being a pain, but maybe one more little piece of info can get me over the hump.&amp;nbsp;&amp;nbsp;&amp;nbsp; No wonder they don't use this thing anymore....Is there a Capt. Zoom decoder ring I can buy somewhere that clear this thing up?&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="3"&gt;Steve&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2009 23:45:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/NEED-HELP-WITH-MC6821/m-p/160122#M9593</guid>
      <dc:creator>drummerboy</dc:creator>
      <dc:date>2009-03-16T23:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: NEED HELP WITH MC6821</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/NEED-HELP-WITH-MC6821/m-p/160123#M9594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;bit d2 in the reg. is a hardware toggle bit, that allows either the direction reg. or&lt;/P&gt;&lt;P&gt;the data reg.&amp;nbsp; to be accessed from the same address.&amp;nbsp;&lt;/P&gt;&lt;P&gt;on RESET itd2=0 so the direction reg. is accessed (since you would normally want to setup&lt;/P&gt;&lt;P&gt;the port direction bits first!), after which you need t0 set d2= 1 so the port reg. is accessed&lt;/P&gt;&lt;P&gt;for port data&amp;nbsp; access .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2009 02:00:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/NEED-HELP-WITH-MC6821/m-p/160123#M9594</guid>
      <dc:creator>donw</dc:creator>
      <dc:date>2009-03-17T02:00:41Z</dc:date>
    </item>
  </channel>
</rss>

