Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

CC2530 - Configuring Port0 as II/O

$
0
0

Hey guys,

I'm trying to configure PORT0 as output general purpose pin. My main goal is to write a logic one to a pin and test with a scope that it actually changes.

I'm using the following code at the moment:

    //config General-Purpose I/O
    P0SEL = 0;       //Port 0 function-select register
    P0DIR = 0;       //Port 0 direction register

could you please let me what i'm doing wrong.

Thanks,

Reza


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>