Jump to content
43oh

TimerSerial Vs hardware UART Code size


Recommended Posts

Doing some experiments with an older LaunchPad (rev 1.4).

With a MSP340G2553 (hardware UART):

post-36927-135135564793_thumb.jpg

 

Commpiling a small Sketch with serial communication found that the code size generated by the compiler

is smaller using TimerSerial than the code size used for hardware UART:

 

Target Board: LaunchPad w/ msp430G2452 (16MHz)

 

Erasing...

Programming...

Done, 1358 bytes written <---- Using TimerSerial

 

Target Board: LaunchPad w/ msp430G2553 (16MHz)

 

Erasing...

Programming...

Done, 1930 bytes written <---- Using hardware UART

 

any idea?

Link to post
Share on other sites

There is one Sketch only.

Is compiled using diferent options (target Microcontroller).

Both of them are working correctly (taking care of inverting TXD and RXD lines ).

When the target is MSP430G2452, the compiler will use TimerSerial library because there is not a UART available.

The compiler produce a more compact code when simulate the UART, a strange result in my opinion. :?:

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...