Jump to content

Search the Community

Showing results for tags 'processor'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News
    • Announcements
    • Suggestions
    • New users say Hi!
  • Spotlight!
    • Sponsor Spotlight
    • Sponsor Giveaways
  • Energia
    • Energia - MSP
    • Energia - TivaC/CC3XXX
    • Energia - C2000
    • Energia Libraries
  • MSP Technical Forums
    • General
    • Compilers and IDEs
    • Development Kits
    • Programmers and Debuggers
    • Code vault
    • Projects
    • Booster Packs
    • Energia
  • Tiva-C, Hercules, CCXXXX ARM Technical Forums
    • General
    • SensorTag
    • Tiva-C, Hercules, CC3XXX Launchpad Booster Packs
    • Code Vault
    • Projects
    • Compilers and IDEs
    • Development Kits and Custom Boards
  • Beagle ARM Cortex A8 Technical Forums
    • General
    • Code Snippets and Scripts
    • Cases, Capes and Plugin Boards
    • Projects
  • General Electronics Forum
    • General Electronics
    • Other Microcontrollers
  • Connect
    • Embedded Systems/Test Equipment Deals
    • Buy, Trade and Sell
    • The 43oh Store
    • Community Projects
    • Fireside Chat
  • C2000 Technical Forums
    • General
    • Development Kits
    • Code Vault
    • Projects
    • BoosterPacks

Calendars

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Location


Interests


Sparkfun


Github

Found 5 results

  1. Hi, guys. I am a beginner in Stellaris microcontroller programming. I try to generate a delay of 1 sec (1 sec - led ON, 1 sec - led OFF). I have selected the timer0A - 16 bits. Delay - 1sec. Frequency = 4 MHz T = 1 / 4Mhz = 250 nsec. So, to generate a delay of 1 sec : 1.000.000.000 nsec / 250 nsec = 4.000.000 4.000.000 = 62.500 * 64; But i think in my code i must set another bit, i dont know if it is correct, his name "main interrupt". Here is my code :
  2. Hi. I try to download a program in microcontroller and i receive the next error : CORTEX_M4_0: Trouble Reading Memory Block at 0x708 on Page 0 of Length 0x18: Debug Port error occurred. CORTEX_M4_0: Error: Debug Port error occurred. I use Tiva C Series LaunchPad EK - TM4C123XGL.
  3. Hi all. First of all i have made a program who blink a led. I use the interrupt of Timer0B interrupt. I enabled this interrupt with this instruction : IntEnable(INT_TIMER0B_BLIZZARD); This interrupt is defined in the header file hw_ints.h : #define INT_TIMER0B_BLIZZARD 36 // 16/32-Bit Timer 0B And program works very well. But now, i want to enable the same interrupt with another instruction : NVIC_EN1 = 0x00000010; In my program the Timer0B interrupt has number 36. in header file hw_nvic.h : #define NVIC_EN1 0xE000E104 // Interrupt 32-54 Set Enable Is the same interrupt ? I receive an error #138 expression must be a modifiable lvalue. An lvalue is an expression to which a value can be assigned. The lvalue expression is located on the left side of an assignment statement, whereas an rvalue is located on the right side of an assignment statement. Each assignment statement must have an lvalue and an rvalue. The lvalue expression must reference a storable variable in memory. It cannot be a constant. Why i receive this error ? Thank you.
  4. Hi. I want to made a simple program who turn on/off a led. In the function below i must use the XOR operator in line : GPIOPinWrite(GPIO_PORTF_BASE, GPIO_PIN_1 | GPIO_PIN_2 | GPIO_PIN_3, 8); How can i write the XOR operation ? void Timer0BIntHandler() { TimerIntClear(TIMER0_BASE, TIMER_TIMB_TIMEOUT); counter++; if(counter == NUMBER_OF_INTS) { GPIOPinWrite(GPIO_PORTF_BASE, GPIO_PIN_1 | GPIO_PIN_2 | GPIO_PIN_3, 8); counter = 0; } }
  5. LadyInRed

    Compute clock frequency

    Hi. I have the next code : #include<stdint.h> #include<stdbool.h> #include"inc/hw_types.h" #include"inc/hw_memmap.h" #include"driverlib/sysctl.h" #include"driverlib/gpio.h" int main() { int LED = 4; SysCtlClockSet(SYSCTL_SYSDIV_10 | SYSCTL_USE_PLL | SYSCTL_XTAL_16MHZ | SYSCTL_OSC_MAIN); SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOF); GPIOPinTypeGPIOOutput(GPIO_PORTF_BASE, GPIO_PIN_1 | GPIO_PIN_2 | GPIO_PIN_3); while(1) { GPIOPinWrite(GPIO_PORTF_BASE, GPIO_PIN_1 | GPIO_PIN_2 | GPIO_PIN_3, LED); SysCtlDelay(2000000); { LED ^= 4; } } } In this code i have the next instruction : SysCtlClockSet(SYSCTL_SYSDIV_10 | SYSCTL_USE_PLL | SYSCTL_XTAL_16MHZ | SYSCTL_OSC_MAIN) I use PLL, so the frequency is 400MHz / 2 = 200MHz. This frequency is divided with 10, so frequency now is 20MHz. I want to generate a delay of 1 sec. The period is T = 1 / F = 1 / 20MHz T = 50 ns. In this instruction SysCtlDelay(2000000); So the delay is 50 ns * 20.000.000 = 1.000.000.000 ns = 1000 ms = 1 sec. But the delay is more than a 1 sec, something about 3 sec. Help me to compute clock frequency.
×