This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

configuring clock for PORT N in TM4C1231H6PGEI

Other Parts Discussed in Thread: TM4C1231H6PGE

Sir,can u tell me about clock configuration for PORTS in short and please help me out to configure Clock setting for PORT N as I am getting error in SYSCTL_RCGC2_R = SYSCTL_RCGC2_GPION; then what will be the command to set clock for PORTN.

  • Hello Sefu,

    SYSCTL_RCGC2_GPION is not a valid define. On TM4C1231H6PGE to enable Port N you would need to use the SysCtlPeripheralEnable API with SYSCTL_PERIPH_GPION argument. Note that RCGCx register are legacy and not updated for new peripherals. Instead RCGCperipheral is the correct register to use.

    A word of caution: Do not use the DRM method to update register, as it will be deprecated breaking your SW

    Regards
    Amit