hello to all
I have a question concerning the stm32f303-discovery
I would like to set up a motion sensor (PIR) with it
I would like to know how I can do and how do I enable pin input
thanks
Sym32f303-discovery
Moderator: RoccoMarco
- Giovanni
- Site Admin
- Posts: 14892
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 996 times
Re: Sym32f303-discovery
Hi,
In the file board.h there are the default settings of the I/O pins, by default all the unused pins are programmed as input with pull-up.
You may change the programming of a pin using palPadSetMode(), see the documentation of the PAL driver.
Giovanni
In the file board.h there are the default settings of the I/O pins, by default all the unused pins are programmed as input with pull-up.
You may change the programming of a pin using palPadSetMode(), see the documentation of the PAL driver.
Giovanni
Re: Sym32f303-discovery
sorry but I do not understand
board.h file to activate the input pin must remove the pullu-up?
and the documentation about pal drivers where can i take?
board.h file to activate the input pin must remove the pullu-up?
and the documentation about pal drivers where can i take?
- Giovanni
- Site Admin
- Posts: 14892
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 996 times
Re: Sym32f303-discovery
alca wrote:board.h file to activate the input pin must remove the pullu-up?
Do you need the pull-up?
alca wrote:and the documentation about pal drivers where can i take?
In the documentation section, I will do the clicking for you, here: http://chibios.sourceforge.net/html/group___p_a_l.html
To generic questions I can only give generic answers, please be more specific.
Giovanni
Re: Sym32f303-discovery
I apologize for the lack of clarity are not very practical about this tab
I would like to enable the pin an input to a motion sensor
I would like some sample code to configure this sensor and pin input
thanks
I would like to enable the pin an input to a motion sensor
I would like some sample code to configure this sensor and pin input
thanks
- Giovanni
- Site Admin
- Posts: 14892
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 996 times
Re: Sym32f303-discovery
Hi,
I don't know the sensor, what kind of connection does it have? if it is just an input pin, then any unused pin is already an enabled input.
Giovanni
I don't know the sensor, what kind of connection does it have? if it is just an input pin, then any unused pin is already an enabled input.
Giovanni
Re: Sym32f303-discovery
The sensor is :
Level Output detected: High (3.3V)
Level Output undetected Low (0 V)
thanks
Level Output detected: High (3.3V)
Level Output undetected Low (0 V)
thanks
- Giovanni
- Site Admin
- Posts: 14892
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 996 times
Re: Sym32f303-discovery
Giovanni wrote:any unused pin is already an enabled input.
Giovanni