Skip to content

Instantly share code, notes, and snippets.

@stlk
Created February 19, 2011 23:43
Show Gist options
  • Save stlk/835511 to your computer and use it in GitHub Desktop.
Save stlk/835511 to your computer and use it in GitHub Desktop.
6 - RX
7 - TX
9 - test
10 - GND
11 - +3V
I think pin 9 and 11 must be join.
const unsigned char para[3]="AT";
const unsigned char dial[17] ="ATD0770520112;\n\r";
init_uart(UBRR_VAL);
while (1)
{
for (i=0;i<3;i++)
{
send_char(para[i]);
delay_ms(500);
}
send_string("\n\r");
for (i=0;i<17;i++)
{
send_char(dial[i]);
delay_ms(200);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment