Open the library source file, and you will find in the first lines:
-- Description: Software RS232 library -- Library supports software RS232 send and receive procedure on any IO-pin. -- Both the inverted and non-inverted routines are available, -- so it should fit any hardware. -- Baudrate can be set between 110 and 230_400 (for 20 Mhz Xtal), -- for lower Xtal frequencies the maximum baudrate will be equally lower. -- Baudrates are optimized, so even the high baudrates shouldn't be a problem -- (my [Stef] standard = 115_200 Baud, which has never given me any problems). -- Interrupts are disabled during transmissions. -- Default parameters are 8 databits, 2 stopbits, no parity, no handshake. -- . -- To use this serial_software library in a user program: -- . -- 1. The following aliases must be defined: -- serial_sw_tx_pin is pin_xy (any output pin) -- serial_sw_rx_pin is pin_xy (any input pin) -- . -- 2. the following constants must be defined by the user program: -- serial_sw_baudrate = 110 .. 240_000 -- . -- 3. The following constants may [optionally] be defined by the user program: -- serial_sw_invert = FALSE | TRUE (default: TRUE) -- serial_sw_databits = 5 .. 8 (default: 8) -- serial_sw_stopbits = 1 | 2 (default: 2) -- . -- 4. Include serial_software -- . -- 5. Set the selected serial_sw_tx_pin for output and -- set the serial_sw_rx_pin for input. -- . -- 6. serial_sw_init() -- -- ---------------------------------------------------------------------------- So, I don't think you have to modify the library. It must be configured like described here. Greets, Kiste ________________________________ Von: phil heintz <[email protected]> An: [email protected] Gesendet: 12:00 Mittwoch, 5.Februar 2014 Betreff: [jallib] serial software with 18f452 library Hello Just including this library doesn't work If somebody could give me some help to modify this library ... It's a headache for me Thanks a lot Phil -- You received this message because you are subscribed to the Google Groups "jallib" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/jallib. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "jallib" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/jallib. For more options, visit https://groups.google.com/groups/opt_out.
