This is my problem, it appears that all communication lines of PIC 16F 9 13 are present on the same set of pins It is convenient that I do not have to sacrifice GPIO pins to do comics, but now the problem is that I am using SPI on the chip, how can I send RS 232 information?
Due to this issue came, it is that I just bought the bus chip transmitted on SIP, and I would really like to see the data on RS 232, so I can see the message. (I really do not know much so far, so who knows that it still makes sense).
Here I see the options, and maybe someone else has a better idea that I was just missing.
- At any time the setup is a time plan that whenever I get the data between SPI and RS232,
- it does not seem difficult Wanted, but thinking that I do not want to miss a message, what if a message is written, when I am writing RS 232, is it possible that I remember it?
2 .. I can always use SPI, but then construct our own bus bus on 8 GPIO lines, using PIC 16F 9 13 only using PPIO lines, and again After the RS 232 lines are released on the second PIC, I can read data and spit it.
- It is possible, but now we are wasting 2 chips, and all GPIO lines,
should be a better way
Update: I I would like to clarify, obviously a solution is using a completely different chip (which may actually be the end if I can get the 18f program), however, I would be interested in the worst case scenario I am in which I am limited in resources and only a few 9 3, this is The only way to be with though. , Or is there a better way?
You can implement the software implementation of the SPI bus - it is easy to do so by the UAR because the time Not important and you are in control of it.
Most chips get buffer, so if you are doing something with the UAR, the message can be buffered inside the cans chip but ... you will need to make sure you get the messages CAN can get out of chip / often enough so that you can not lose anything.
You will have to use an obstacle for either the UART TX process - so that you can get a CAN message when sending data to UART.
If you are interested only in some messages, then maybe can be filtered in cans chips - this is easier to get only those messages you are interested in, usually the number of packets / Dramatically secondly >
Comments
Post a Comment