Search found 25 matches

by GianlucaLaManna
Thu Jan 21, 2016 10:22 am
Forum: SPC56x Support
Topic: Library for LCD Keypad Shield HD44780
Replies: 0
Views: 3928

Library for LCD Keypad Shield HD44780

Hello,
During my university work, I wrote this library to the LCD Keypad Shield HD44780. Using the board SPC560P-DISP with ChibiOS.
I hope it help.

https://github.com/Hanslukas/library-LC ... _HD44780.c

Regards.
by GianlucaLaManna
Mon Jan 18, 2016 4:37 pm
Forum: SPC56x Support
Topic: How to read and write on tx and rx
Replies: 5
Views: 6146

Re: How to read and write on tx and rx

The software is ok. I think it's a problem of hardware setting. I solved using SD1 and with 2 jumper using pins tx and rx near the programmer. I'm using a bluetooth module and the tx and rx I take them in those two pins. So use the same port. In fact I have the same output of Tera Term, and on the c...
by GianlucaLaManna
Mon Jan 18, 2016 1:38 pm
Forum: SPC56x Support
Topic: How to read and write on tx and rx
Replies: 5
Views: 6146

Re: How to read and write on tx and rx

Ok I try to control the setting of the pin and I'll know. Thanks
by GianlucaLaManna
Mon Jan 18, 2016 1:30 pm
Forum: SPC56x Support
Topic: How to read and write on tx and rx
Replies: 5
Views: 6146

Re: How to read and write on tx and rx

Yes I know, but they don't use the rx and tx pad.
With the pin map wizard I set the pin 99 in RX and the pin 26 in TX.The function to write a character on the serial TX / RX is chprintf? It correct?
by GianlucaLaManna
Mon Jan 18, 2016 12:38 pm
Forum: SPC56x Support
Topic: How to read and write on tx and rx
Replies: 5
Views: 6146

How to read and write on tx and rx

Hello. I use SPC560P - DISP. I enabled the serial communication LIN1. Then I set the pins TX and RX: TX output and RX input. This is my code: sdStart(&SD2, NULL); chprintf((BaseSequentialStream *)&SD2, "V \r\n"); but it does not work. Use SD1 because SD2 I use it with USB / Teraterm.
by GianlucaLaManna
Wed Aug 05, 2015 3:48 pm
Forum: SPC56x Support
Topic: Operation palReadPad ()
Replies: 1
Views: 4966

Operation palReadPad ()

Hello. This is my code: static WORKING_AREA(waThread1, 128); static msg_t Thread1(void *arg) { (void)arg; chRegSetThreadName("detection"); int count=0; while (TRUE) { // uint32_t duration, distanceCm; palClearPad(PORT_A, TRIG_PIN); // low osalThreadSleepMicroseconds(2); palSetPad(PORT_A, T...
by GianlucaLaManna
Tue Jul 07, 2015 12:37 pm
Forum: SPC56x Support
Topic: How use ICU Driver?
Replies: 1
Views: 4400

How use ICU Driver?

Hello, I have to simulate the behavior of this function Arduino on Chibios for the management of my sensor. duration = pulseIn(ECHO_PIN,HIGH); I use ICU driver to detect the rising and falling edge. This is the Arduino code: /* Tested with HY-SRF05, HC-SR04 Assuming a room temp of 20 degrees centigr...
by GianlucaLaManna
Tue Jul 07, 2015 11:47 am
Forum: SPC56x Support
Topic: How can I print an Integer
Replies: 7
Views: 7418

[Solved] How can I print an Integer

I used os-less.
Now I use chibios.

I solved so:

Code: Select all

chprintf((BaseSequentialStream *)&SD1, "Value of number is:  %d", number);


Thanks.

Best regards
Gianluca.
by GianlucaLaManna
Tue Jun 30, 2015 3:57 pm
Forum: SPC56x Support
Topic: How can I print an Integer
Replies: 7
Views: 7418

Re: How can I print an Integer

Ok, but in the demo for my board using only chnWriteTimeout. Thanks anyway. :)

Gianluca.
by GianlucaLaManna
Tue Jun 30, 2015 3:36 pm
Forum: SPC56x Support
Topic: How can I print an Integer
Replies: 7
Views: 7418

Re: How can I print an Integer

Sorry, I don't know and I don't understand. This is my include in my code: #include "components.h" #include "adc_lld_cfg.h" #include "pwm_lld_cfg.h" #include "icu_lld_cfg.h" I have to include something else? Or enable some option in the configuration.xml file?

Go to advanced search