Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - vitaliy

Pages: 1 2 3 4 5 [6] 7 8 9 10 11 ... 14
76
8051 Development Tools / Re: use 8051 send data to trigger rfid read data
« on: November 21, 2011, 12:26:23 pm »
You may install 8051 development system
There are many examples ( including LCD) under
C:\\bipom\\devtools\\MicroC\\Examples\\8051

77
8051 Development Tools / Re: use 8051 send data to trigger rfid read data
« on: November 19, 2011, 03:40:13 pm »
add while(TI == 0) after any write to SBUF

78
8051 Development Tools / Re: X2 Feature
« on: October 16, 2007, 01:33:08 am »
Hello Justin,
please configure CKCON0 - Clock Control Register (8Fh)

BIT7 Reserved The values for this bit are indeterminite. Do not set this bit.

BIT6 Watchdog Clock
(This control bit is validated when the CPU clock X2 is set; when X2 is low, this bit
WDX2 has no effect).
Cleared to select 6 clock periods per peripheral clock cycle.
Set to select 12 clock periods per peripheral clock cycle.

BIT5 Programmable Counter Array Clock
(This control bit is validated when the CPU clock X2 is set; when X2 is low, this bit
PCAX2 has no effect).
Cleared to select 6 clock periods per peripheral clock cycle. Set to select 12 clock
periods per peripheral clock cycle.

BIT4 Enhanced UART Clock (Mode 0 and 2)
(This control bit is validated when the CPU clock X2 is set; when X2 is low, this bit
SIX2 has no effect).
Cleared to select 6 clock periods per peripheral clock cycle. Set to select 12 clock
periods per peripheral clock cycle.

BIT3 Timer2 Clock
(This control bit is validated when the CPU clock X2 is set; when X2 is low, this bit
T2X2 has no effect).
Cleared to select 6 clock periods per peripheral clock cycle.
Set to select 12 clock periods per peripheral clock cycle.

BIT2 Timer1 Clock
(This control bit is validated when the CPU clock X2 is set; when X2 is low, this bit
T1X2 has no effect).
Cleared to select 6 clock periods per peripheral clock cycle. Set to select 12 clock
periods per peripheral clock cycle.

BIT1 Timer0 Clock
(This control bit is validated when the CPU clock X2 is set; when X2 is low, this bit
T0X2 has no effect).
Cleared to select 6 clock periods per peripheral clock cycle. Set to select 12 clock
periods per peripheral clock cycle.

BIT0 CPU Clock
Cleared to select 12 clock periods per machine cycle (STD mode) for CPU and
all the peripherals. Set to select 6 clock periods per machine cycle (X2 mode)
0X2
and to enable the individual peripherals[ch8217]X2[ch8217] bits. Programmed by hardware after
Power-up regarding Hardware Security Byte (HSB), Default setting, X2 is
cleared.

Reset Value = 0000 000[ch8217]HSB.

79
If the RFID sends  NULL-terminated ASCII
LCD_printf ( getstr());   will work.

80
I guess "getchr()" may help you

GETCHR    
 MODEL & PROTOTYPE:

        A: int getchr()


    ARGUMENTS:

        None


    RETURN VALUE:

        Value of a character read from the serial port.


    DESCRIPTION:

          This function reads a single character  from  the  console  serial
       port,  and returns it as a positive value in the range of 0  to  255.
       The  character  is  read  in  "raw"  format,  with  no   translations
       performed.


    EXAMPLES:

        while(getchr() != \'\\r\');        /* Wait for a RETURN */

GETCH    
 MODEL & PROTOTYPE:

        A: int getch()


    ARGUMENTS:

        None


    RETURN VALUE:

        Value of a character read from the serial port.


    DESCRIPTION:

          This function reads a single character  from  the  console  serial
       port, and returns it as a positive value in the range of 0 to 255. If
       the character is a carriage  return  (0x0D),  is  translated  into  a
       NEWLINE (0x0A) for compatibility with \'C\'.


    EXAMPLES:

        while(getch() != 0x1B);     /* Wait for an ESCAPE character */



    GETSTR
    MODEL & PROTOTYPE:

        S: int getstr(char *buffer, int size)
        A: int _getstr(register char *buffer, int size)


    ARGUMENTS:

        buffer  - Pointer to string to receive line
        size    - Maximum size of line to read


    RETURN VALUE:

        The number of characters received into the line.


    DESCRIPTION:

          The "getstr"  function reads a string of character from the serial
       port and places them into the specified character buffer until either
       a NEWLINE character is encountered, or the limit of "size" characters
       are read.

          The string is terminated with the standard  NULL  (00)  character.
       The trailing NEWLINE  \'\\n\'  character is NOT included in  the  output
       buffer.

          The BACKSPACE or DEL keys can be used to edit the input line.

          The "buffer"  must be located in EXTERNAL memory when the "getstr"
       function is used,  and INTERNAL memory when the "_getstr" function is
       used.


    EXAMPLES:

        getstr(input_line, 80);

81
8051 Development Tools / Re: How To Use Buit-InTimers ?
« on: September 22, 2006, 12:14:31 pm »
look at
C:\\bipom\\devtools\\MicroC\\Examples\\8051\\tiny\\Timer
examples

82
8051 Development Tools / Re: Server51
« on: June 22, 2006, 03:23:03 am »
I have created simple Visual C++ 6.0 project to read TLC2543 analog channel #4  using Server51.
Please download
http://www.bipom.com/support/S51TLC2453.zip

84
8051 Development Tools / Re: Server51
« on: June 20, 2006, 09:06:54 am »
This is Visual C++ code

85
8051 Development Tools / Re: Server51
« on: June 17, 2006, 01:04:58 am »
CClientAPI::ReadAnalog

Form
long ReadAnalog(short DeviceType, short Channel, short * pVal)
Return value is ERRCODE value.

Description
Reads the analog input value from ADC board .
DeviceType value is a type of Analog-to-Digital converter
that is installed on the board

DEVICE_TLC2543.

Available values of Channel are:

ANALOG_CHANNEL1
ANALOG_CHANNEL2
ANALOG_CHANNEL3
ANALOG_CHANNEL4
ANALOG_CHANNEL5
ANALOG_CHANNEL6
ANALOG_CHANNEL7
ANALOG_CHANNEL8
ANALOG_CHANNEL9
ANALOG_CHANNEL10
ANALOG_CHANNEL11
ANALOG_CHANNEL12

DEVICE_MAX127, DEVICE_MAX128
Channel defines a number of physical analog input of ADC board.
Available values of Channel are 0,1,2,3,4,5,6, 7.
pVal is a pointer to the variable that receives analog input information.

Example

// Create an object

CClientAPI obj;

short Value;

if ( !obj.InitPort())

{

// Get the analog input value of channel #4

ERRCODE ec=board.ReadAnalog(DEVICE_TLC2543, ANALOG_CHANNEL4, &Value);

if ( !ec )

// Good request

else

// Bad request

}


86
8051 Development Tools / Re: Adding new registers to compiler\'s library
« on: December 12, 2005, 01:25:41 pm »
asm
{
P4      EQU $C0
P5      EQU $C7
}
extern register unsigned char P4,P5;

void main()
{
     int val;
     val = P4;
     P5 = 0
     P5 |=1;
.....      
}

88
8051 Development Tools / Re: How To Declare \'Alternate Function\' vs GPIO
« on: December 08, 2005, 03:59:27 pm »
Please read
http://www.bipom.com/cgi-bin/yabb/YaBB.pl?board=8051;action=display;num=1114595527

setbit(P1.3) ;// input or weak pull-up output
clrbit(P1.3); // low output

89
8051 Development Tools / Re: Software implementation of UART
« on: April 21, 2005, 12:30:01 am »
Please install 8051/52 development system from BiPOM Electronics and try C:\\bipom\\devtools\\MicroC\\Examples\\8051\\tiny\\SoftUART\\2ndUART.prj example

90
8051 Development Tools / Re: Writing EEprom
« on: December 09, 2004, 12:15:08 pm »

Pages: 1 2 3 4 5 [6] 7 8 9 10 11 ... 14