Jump to content

ioso

Members
  • Content Count

    1
  • Joined

  • Last visited

Community Reputation

0 Neutral

About ioso

  • Rank
    Newbrie
  1. Hello, how configure XTAL Mhz for PIC16F877A 20Mhz I buil this code : asm __config 0x3ff2 //Timing settings #pragma CLOCK_FREQ 20000000 void main(void) { //Hardware Initialization disable_interrupt( GIE ); set_bit( STATUS, RP0 ); set_tris_a( 16 ); set_tris_b( 0 ); clear_bit( STATUS, RP0 ); while(1) { output_port_b(0x01); delay_ms( 1 ); output_port_b(0x00); delay_ms( 1 ); } } And i have misured with Oscilloscope the delay_ms(1) -200us why?
×
×
  • Create New...