Author Topic: Bus Pirate 1 Mbaud uart.  (Read 1666 times)

0 Members and 1 Guest are viewing this topic.

Offline firewalkerTopic starter

  • Super Contributor
  • ***
  • Posts: 2456
  • Country: gr
Bus Pirate 1 Mbaud uart.
« on: July 12, 2018, 11:57:23 am »
 Today I had to test a serial connection of 1 Mbaud. The only available 1 Mbaud capable USB<->serial adapter I had was the TF323R on a Bus Pirate.

It's fairly easy to set it up like a transparent bridge on 1 Mbaud, but it seems the speed between TF232R an the PIC 24F is at a fixed 115,2 kbaud?


PC USB <---115,2 kbaud---> PIC 24F <---1 Mbaud---> Serial Device

Is that correct? I can't use a true 1 Mbaud bridge?

Alexander.
Become a realist, stay a dreamer.

 

Offline firewalkerTopic starter

  • Super Contributor
  • ***
  • Posts: 2456
  • Country: gr
Re: Bus Pirate 1 Mbaud uart.
« Reply #1 on: July 12, 2018, 03:29:04 pm »
For everyone interested, i can be done by making source code changes.

uart.c:55

From:

Code: [Select]
const uint16_t UART_BRG_SPEED[] = {
    13332, /* 300 bps */
    3332,  /* 1200 bps */
    1666,  /* 2400 bps */
    832,   /* 4800 bps */
    416,   /* 9600 bps */
    207,   /* 19200 bps */
    103,   /* 38400 bps */
    68,    /* 57600 bps */
    34,    /* 115200 bps */
    127,   /* 31250 bps */
};


To:

Code: [Select]
const uint16_t UART_BRG_SPEED[] = {
    13332, /* 300 bps */
    3332,  /* 1200 bps */
    1666,  /* 2400 bps */
    832,   /* 4800 bps */
    416,   /* 9600 bps */
    207,   /* 19200 bps */
    103,   /* 38400 bps */
    68,    /* 57600 bps */
    34,    /* 115200 bps */
    127,   /* 31250 bps */
    3      /* 1000000 bps*/
};



main.c:171

From:

Code: [Select]
  /* Set the UART port speed to 115200 bps. */
  bus_pirate_configuration.terminal_speed = 8;

To:

Code: [Select]
  /* Set the UART port speed to 1000000 bps. */
  bus_pirate_configuration.terminal_speed = 10;
« Last Edit: July 12, 2018, 03:33:23 pm by firewalker »
Become a realist, stay a dreamer.

 

Offline ricktendo

  • Regular Contributor
  • *
  • Posts: 115
  • Country: hn
Re: Bus Pirate 1 Mbaud uart.
« Reply #2 on: July 12, 2018, 03:32:51 pm »
Sorta Off Topic: but can Bus Blaster also be used as UART?
 

Offline firewalkerTopic starter

  • Super Contributor
  • ***
  • Posts: 2456
  • Country: gr
Re: Bus Pirate 1 Mbaud uart.
« Reply #3 on: July 12, 2018, 03:39:25 pm »
I don't know.

Alexander.
Become a realist, stay a dreamer.

 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf