M. Mahdi K. Kanan
Published © GPL3+

Projects with Programmable WiCard WiFi Controller Module

Here are some tutorials and easy projects with Programmable WiCard WiFi Controller Module.

BeginnerProtip1 hour545

Things used in this project

Hardware components

WiCard
×1

Story

Read more

Schematics

7 segment with wicard

here's the schematic

Code

7 Segment With WiCard

C/C++
Here's the source code
mbToggle_0 = 0;

main()
{
    ucCounter = 0;
    SetPinsAsOutput(0x70800E);
    ControlBoxHandler();
}

ControlBoxHandler()
{
    if(mbToggle_0)
        SetTimerCounter(1000000);
}

TimerIntHandler()
{
    // ..21...
    // |     |
    // 20   22
    // |.15..|
    // |     |
    // 3     1
    // |..2..| 0

    SetPortLatch(0x70800F);

    if(ucCounter == 0)
        ClearPortLatch(0x70000E);
    else if(ucCounter == 1)
        ClearPortLatch(0x400002);
    else if(ucCounter == 2)
        ClearPortLatch(0x60800C);
    else if(ucCounter == 3)
        ClearPortLatch(0x608006);
    else if(ucCounter == 4)
        ClearPortLatch(0x508002);
    else if(ucCounter == 5)
        ClearPortLatch(0x308006);
    else if(ucCounter == 6)
        ClearPortLatch(0x30800E);
    else if(ucCounter == 7)
        ClearPortLatch(0x600002);
    else if(ucCounter == 8)
        ClearPortLatch(0x70800E);
    else
        ClearPortLatch(0x708006);

    ucCounter += 1;

    if(ucCounter == 10)
        ucCounter = 0;

    if(mbToggle_0)
        SetTimerCounter(1000000);
}

PCIntHandler()
{
    ClearPCIntRaisingFlag(0xFFFFFFFF);
    ClearPCIntFallingFlag(0xFFFFFFFF);
}

SSMIntHandler()
{
}

Credits

M. Mahdi K. Kanan
57 projects • 65 followers
M. Mahdi K. Kanan is the manager of WiCardTech engineering group.
Contact

Comments

Please log in or sign up to comment.