for 18F452_spi_master_hw.jal example file, I simply change the names of the constants to match the 18f452 datasheet:
-- define the spi mode 0,0 SSP1CON_CKP = 0 -- idle state for clock is high level SSP1STAT_CKE = 0 -- clock edge select, data transmitted on falling edge of sck -- define other spi options SSP1STAT_SMP = 0 -- sample bit, input data sampled at middle of data output time SSP1CON_SSPM = 1 -- spi speed, clock = Fosc/16 SSP1CON_SSPEN = 1 -- enables serial port and configures sck, sdo, sdi and ss as source of the serial port pins --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jallib" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jallib?hl=en -~----------~----~----~----~------~----~------~--~---
