This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Clock inaccuracy of nRF52832 custom board

When using uart example on my curstom board, from /examples/peripheral/uart ,at baudrate 9600, bits are read with a little offset - so that starting from 4th bit, it is mistaken with the fallowing bit.

When measuring with logic analyzer, lenght of each bit is 92us, but it should be 104us at this baudrate.

The function nrf_delay_ms(100) gives a delay of 88.67ms.

I have solderd both 32MHz and 32.768KHz crystals on board, but for this example i am pretty sure i am using internal clock.

Any suggestions? Thanks

Parents Reply
  • As i mentioned earlier, the clock became accurate after placing crystal in correct position (90 degrees).

    For example, each bit lenght of uart message is now 104uS as supposed to, but program halts on:

    //while (NRF_CLOCK->EVENTS_HFCLKSTARTED == 0) {}

    loop. So crystal kinda works.

    As i read in other threads, maybe there is wrong capacitors placed on DEC pins...

    Any suggestions?

Children
Related