Jump to content
43oh

MechScientist

Members
  • Content Count

    4
  • Joined

  • Last visited

  1. Thanks for your replies, they have been very helpful.
  2. Thanks for your response, but I'm not sure I understand what you're saying. I think you're saying that it's just a number and not a number of cycles per second. Is the PWM clock really running at 1MHz, or 1,441,792 Hz? When the system clock is running at 16MHz, SysCtlClockGet returns 16,000,000. If it is really running at 1 MHz it seems that they are inconsistent. Maybe I shouldn't be surprised ;-)
  3. Hi L, Thanks for responding. Sorry, I didn't catch that on my re-read. Let me restate that paragraph: Which looks like it should set the PWM clock to run at 1 MHz. If I call SysCtlClockGet(), I get 16,000,000, which seems right, but if I call SysCtlPWMClockGet() I get 1,441,792. I guess I would have expected 1,000,000. I'm using TivaWare_C_Series-2.0.1.11577. Is there a later or better version to use? Thanks in advance.
  4. Hi, I'm new to the forum and have a question about the PWM clock. I'm using the TM4C123GH6PM version of the Tivia C. I'm a little confused about how to determine the period of the clock. I found an example that went something like this: SysCtlClockSet(SYSCTL_SYSDIV_1|SYSCTL_USE_OSC|SYSCTL_XTAL_16MHZ|SYSCTL_OSC_MAIN); SysCtlPWMClockSet(SYSCTL_PWMDIV_16); Which looks like it should set the PWM clock to run at 1 MHz. If I call SysCtlPWMClockGet(), I get 16,000,000, which seems right, but if I call SysCtlPWMClockGet() I get 1,441,792. My question is whether I'm getting 1 MHz
×
×
  • Create New...