Coder Social home page Coder Social logo

grbl-lpc on LPC1768 at 100MHz about grbl-lpc HOT 12 OPEN

gnea avatar gnea commented on August 29, 2024
grbl-lpc on LPC1768 at 100MHz

from grbl-lpc.

Comments (12)

TomKeddie avatar TomKeddie commented on August 29, 2024 3

@cprezzi I'm not sure it's like that for small micros. The LPC1768 and LPC1769 are likely the same chip tested and sorted according to the testing. I think it's more likely the chip will misbehave if the external environment makes it hot.

Perhaps we should tag this issue as an enhancement and plan to generate an alternate 100MHz config that people can switch in the Makefile?

from grbl-lpc.

cprezzi avatar cprezzi commented on August 29, 2024

I guess you are right, but I'm not the LPC specialist here.
@tbfleming Can you step in with your deeper knowlede please.

from grbl-lpc.

tbfleming avatar tbfleming commented on August 29, 2024

I'll try to explain later when I have time. The quick answer is: no, it's complicated enough that you need to use one of Arm's wizards to edit the headers to change clock frequency.

from grbl-lpc.

cprezzi avatar cprezzi commented on August 29, 2024

At least I can say that grbl-LPC works on the MKS SBase board (LPC1768) without changes ;)

from grbl-lpc.

tbfleming avatar tbfleming commented on August 29, 2024

MKS used a '68? Lame! There's not much price difference between the two chips.

from grbl-lpc.

tbfleming avatar tbfleming commented on August 29, 2024

@cprezzi if you have a scope handy, I'd be curious to hear if the step rate is coming out correctly. I think I know what MKS might have done; if so the normal build would throw off the timers instead of overclocking the chip.

from grbl-lpc.

TomKeddie avatar TomKeddie commented on August 29, 2024

As far as I know this is the mks sbase schematic, can't recall where I got it.

MKS SBASE SCH_V12.pdf

from grbl-lpc.

cprezzi avatar cprezzi commented on August 29, 2024

Thanks @TomKeddie! In this schematics, it is a 1769, but on my board (from aliexpress) it is a 1768 and grbl-LPC works with my board.

from grbl-lpc.

tbfleming avatar tbfleming commented on August 29, 2024

The schematic is missing a critical value: Y1's oscillator frequency. The ARM wizard needs to know this value to modify the header file to set the PLL config bits correctly. The PLL converts the input oscillator to the various clocks within the chip. The wizard figures out how to configure the PLL to do that correctly.

2 possibilities:

  • The MKS board has a lower frequency crystal designed to work with the PLL config that Smoothieware and GRBL-LPC use. If they did this, then grbl-lpc's current config won't overclock the chip, but the counters will run slow.
  • The MKS board uses the same crystal as a Smoothieboard. In this case grbl-lpc's current config overclocks the '68 to run at the '69's speed.

from grbl-lpc.

cprezzi avatar cprezzi commented on August 29, 2024

@tbfleming Y1 on my board is 12.000 MHz and Y2 is 25.000 MHz

from grbl-lpc.

tbfleming avatar tbfleming commented on August 29, 2024

@cprezzi that means we're currently overclocking your chip.

from grbl-lpc.

cprezzi avatar cprezzi commented on August 29, 2024

@tbfleming I didn't realize any problems yet, but I will check if the MCU gets hot.

from grbl-lpc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.