By ROMby Unknown , 5 December 2007
Может кто знает как его конфигурировать? ести примеры на конфигурирования похожего и/о чипа на Борланде Си3.1
#include <stdio.h> #include <conio.h> #define INDEX_PORT 0x0E0 #define DATA_PORT (INDEX_PORT+1) #define CONFIG_START 0x055 #define CONFIG_END 0x0AA unsignedint in_idx(int reg){ outp(INDEX_PORT, reg); return inp(DATA_PORT); } void out_idx(int reg, int val){ outp(INDEX_PORT, reg); outp(DATA_PORT, val); } int main (){ int adr, data; outp(INDEX_PORT,CONFIG_START); adr = in_idx(0x020); // Read ID FDC37N97x if( (adr != 0x0A) && ( adr != 0x0B)){ printf("NOT FDC37N97x!!! (ID = 0x%02X)\n",adr); getch(); goto LabEnd; } data = in_idx(0x022); // power out_idx(0x22, data|0x20); // power on IR out_idx(0x07, 0x05); // Infrared data = in_idx(0x030); // activate out_idx(0x030, 0x01); // enable out_idx(0x0F1, 0x40); // UART LabEnd: outp(INDEX_PORT,CONFIG_END); return 0; }

А надо всего лишь, что бы он перешел с ирды в сом режим... Может кто знает как это замутить?
The content of this field is kept private and will not be shown publicly.

BBCode

  • No HTML tags allowed.
  • You may use the following BBCode tags:
    • [align]
    • [b]
    • [code]
    • [color]
    • [font]
    • [hr]
    • [i]
    • [img]
    • [list]
    • [quote]
    • [s]
    • [size]
    • [spoiler]
    • [sub]
    • [sup]
    • [table]
    • [u]
    • [url]
  • Web page addresses and email addresses turn into links automatically.

maco

18 years 3 months ago

Note: Upon reset, SCC2 can wake up in either UART mode or SIR mode depending on the state of the CFG0 strap pin.
— If CFG0 is sampled low, SCC2 wakes up in SIR mode.
— If CFG0 is sampled high, SCC2 wakes up in UART mode.