<?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>8-bit MicrocontrollersのトピックRe: pcf85162</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/pcf85162/m-p/619386#M22224</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the same issue, I'm very confused about &lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;how to initialize PFC85162&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;how can I send the address+commands+data. I am using arduino.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Apr 2017 09:18:27 GMT</pubDate>
    <dc:creator>angelbaunino</dc:creator>
    <dc:date>2017-04-14T09:18:27Z</dc:date>
    <item>
      <title>pcf85162</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/pcf85162/m-p/619385#M22223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm using PCF85162 driver for display. After reading datasheet I cannot figure out how to initialize it and how to write data to display?&lt;/P&gt;&lt;P&gt;What RAM addresses shall I use for writing segments of the display.&lt;/P&gt;&lt;P&gt;&amp;nbsp; u_int8 PCF8562_init(void) { //·½Ê½Éè¶¨: ÔÊÐíÏÔÊ¾¡¢Æ«ÖÃ1/2¡¢¾²Ì¬ //0 1 0 0 1 1 0 1 //C 1 0 x E B M1 M0 u_int8 initCode[2] = {IICADDR8562, 0x4d}; if( ISendStr(IICADDR8562,0x4d,&amp;amp;initCode[0],2) ) return (1); else return (0); }&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Mar 2017 20:14:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/pcf85162/m-p/619385#M22223</guid>
      <dc:creator>anjalishelke</dc:creator>
      <dc:date>2017-03-25T20:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: pcf85162</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/pcf85162/m-p/619386#M22224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the same issue, I'm very confused about &lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;how to initialize PFC85162&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;how can I send the address+commands+data. I am using arduino.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Apr 2017 09:18:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/pcf85162/m-p/619386#M22224</guid>
      <dc:creator>angelbaunino</dc:creator>
      <dc:date>2017-04-14T09:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: pcf85162</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/pcf85162/m-p/619387#M22225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've made an example, perhaps it helps you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Pin A4 (SDA), Pin A5 (SCL).*/&lt;/P&gt;&lt;P&gt;#include &amp;lt;Wire.h&amp;gt;&lt;/P&gt;&lt;P&gt;/* Slave Address PCF85162, PCF8562, PCF8566*/&lt;BR /&gt;#define PCF85162_ADDR 0x38&lt;BR /&gt;/* Commands */&lt;BR /&gt;#define PCF_CONTINUE (1 &amp;lt;&amp;lt; 7)&lt;/P&gt;&lt;P&gt;#define PCF_CMD_SET_MODE (1 &amp;lt;&amp;lt; 6)&lt;BR /&gt;#define PCF_MODE_ENABLE 0x08&lt;BR /&gt;#define PCF_MODE_HALF_BIAS 0x04&lt;BR /&gt;#define PCF_MODE_THIRD_BIAS 0x00&lt;BR /&gt;#define PCF_MODE_MULTIPLEX_4 0x00 // Multiplex 1:4&lt;BR /&gt;#define PCF_MODE_MULTIPLEX_3 0x03 // Multiplex 1:3&lt;BR /&gt;#define PCF_MODE_MULTIPLEX_2 0x02 // Multiplex 1:2&lt;BR /&gt;#define PCF_MODE_STATIC 0x01&lt;/P&gt;&lt;P&gt;#define PCF_CMD_LOAD_DATA_POINTER(dp) (dp &amp;amp; 0x1f)&lt;/P&gt;&lt;P&gt;#define PCF_CMD_SELECT_DEVICE(devNum) (((1 &amp;lt;&amp;lt; 6) | (1 &amp;lt;&amp;lt; 5)) | (devNum &amp;amp; 0x07))&lt;/P&gt;&lt;P&gt;#define PCF_CMD_SELECT_BANK ((1 &amp;lt;&amp;lt; 6) | (1 &amp;lt;&amp;lt; 5) | (1 &amp;lt;&amp;lt; 4) | (1 &amp;lt;&amp;lt; 3))&lt;BR /&gt;#define PCF_SELECT_INPUT_ROW0 0x00&lt;BR /&gt;#define PCF_SELECT_INPUT_ROW2 0x02&lt;BR /&gt;#define PCF_SELECT_OUTPUT_ROW0 0x00&lt;BR /&gt;#define PCF_SELECT_OUTPUT_ROW2 0x01&lt;/P&gt;&lt;P&gt;#define PCF_CMD_SELECT_BLINK ((1 &amp;lt;&amp;lt; 6) | (1 &amp;lt;&amp;lt; 5) | (1 &amp;lt;&amp;lt; 4))&lt;BR /&gt;#define PCF_SELECT_NORMAL_BLINK 0x00&lt;BR /&gt;#define PCF_SELECT_ALTERN_BLINK 0x04&lt;BR /&gt;#define PCF_SELECT_BLINK_FREC_0 0x00&lt;BR /&gt;#define PCF_SELECT_BLINK_FREC_1 0x01&lt;BR /&gt;#define PCF_SELECT_BLINK_FREC_2 0x02&lt;BR /&gt;#define PCF_SELECT_BLINK_FREC_3 0x03&lt;/P&gt;&lt;P&gt;/* Display Data 0babcdefgP */&lt;BR /&gt;byte ONE = 0b01100000;&lt;BR /&gt;byte TWO = 0b11011010;&lt;BR /&gt;byte THREE = 0b11110010;&lt;BR /&gt;byte FOUR = 0b01100110;&lt;BR /&gt;byte FIVE = 0b10110110;&lt;BR /&gt;byte SIX = 0b10111110;&lt;BR /&gt;byte SEVEN = 0b11100000;&lt;BR /&gt;byte EIGHT = 0b11111110;&lt;BR /&gt;byte NINE = 0b11110110;&lt;BR /&gt;byte ZERO = 0b11111100;&lt;BR /&gt;byte DOT_POINT = 0b00000001;&lt;BR /&gt;byte EMPTY = 0b00000000;&lt;/P&gt;&lt;P&gt;byte TWO_D2 = 0b11011100;&lt;BR /&gt;byte THREE_D2 = 0b11110100;&lt;BR /&gt;byte ZERO_D2 = 0b11111010;&lt;/P&gt;&lt;P&gt;byte num[11] = {ONE, TWO, THREE, FOUR, FIVE, SIX, SEVEN, EIGHT, NINE, ZERO};&lt;/P&gt;&lt;P&gt;void setup()&lt;BR /&gt;{&lt;BR /&gt;Wire.begin();&lt;BR /&gt;Serial.begin(9600);&lt;/P&gt;&lt;P&gt;/*Init PCF Device*/&lt;BR /&gt;Wire.beginTransmission(PCF85162_ADDR);&lt;BR /&gt;//Wire.write(PCF_CMD_SELECT_DEVICE(3) |PCF_CONTINUE); // subadd device - If I want set only one device&lt;BR /&gt;Wire.write(PCF_CMD_SET_MODE | PCF_MODE_ENABLE | PCF_MODE_STATIC | PCF_CONTINUE ); // enable driver&lt;BR /&gt;Wire.endTransmission();&lt;BR /&gt;delay(500);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;void loop() {&lt;/P&gt;&lt;P&gt;for (int k = 0; k &amp;lt; 10; k++)&lt;BR /&gt;{&lt;BR /&gt;Wire.beginTransmission(PCF85162_ADDR);&lt;BR /&gt;Wire.write(PCF_CMD_SELECT_DEVICE(3) | PCF_CONTINUE); // subadd device&lt;BR /&gt;Wire.write(PCF_CMD_LOAD_DATA_POINTER(0)); // clear pointer&lt;/P&gt;&lt;P&gt;Wire.write(num[k]); // Digit 4&lt;BR /&gt;Wire.write(num[k]); // Digit 3&lt;BR /&gt;Wire.write(num[k]); // Digit 2&lt;BR /&gt;Wire.write(num[k]); // Digit 1&lt;/P&gt;&lt;P&gt;Wire.endTransmission();&lt;BR /&gt;delay(1000);&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Apr 2017 06:05:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/pcf85162/m-p/619387#M22225</guid>
      <dc:creator>angelbaunino</dc:creator>
      <dc:date>2017-04-15T06:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: pcf85162</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/pcf85162/m-p/619388#M22226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What controller you have used for this code ?&lt;/P&gt;&lt;P&gt;Kindly can you share the schematic of hardware you interfaced ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2019 05:09:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/pcf85162/m-p/619388#M22226</guid>
      <dc:creator>zafarobad</dc:creator>
      <dc:date>2019-09-19T05:09:29Z</dc:date>
    </item>
  </channel>
</rss>

